Displaying x decimal places in a datagrid.

L

Les Hughes

Hey guys (and gals!),

I have a dataset brought back from sqsl server, where some of the
columns are already rounded within the dataset (retrieved using SELECT
ROUND(data, decimalplaces) as myData...etc)

In my datagrid, say the value is 1.15, it displays 1.150000000.

Some columns are text columns, some need to only show 2 decimal places,
and others need to only show 1.

Is there an easy way of specifing which datagrid colums show what about
of decimal places somewhere in the code?

Thanks heaps,

Les :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top