DataGrid - Float Fields

B

bad_boyu

Hello,
I am using Visual Studio 2003(C#) +SqlServer2000

I need some help.. I have a datagrid that is populated with a table
from a database made in SqlServer2000. I have problems with the float
fields from table! I want to format them to appear with only 2 decimals
in the datagrid, but I did not find a solution.

Does anybody have a solution for my problem? (I am using a dataset with
the datagrid)

Thanks!
 
G

Guest

Hi,
Try to use the DataGridTextBoxColumn.Format property and set it to "####0.00".

Mihaly
 

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