This is a migrated thread and some comments may be shown as answers.

gridviewfloatcolumn

0 Answers 71 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mahsan
Top achievements
Rank 1
Mahsan asked on 11 Jun 2014, 05:31 AM
Hello Telerik Team

I have a table in database which has some Float column, I load that table data in to a data table and assign the data table to a radgridview as a datasource, when a grid cell is not in edit mode I want to see the  float values whit out decimal point
,but when the cell is in edit mode I want to see the float values with decimal point(we have some thing like this in excel),
I use this format string to achive it
((GridViewDecimalColumn)GrdItm.Columns[FieldName]).FormatString = "{0:#,#}";
but when the cell is in edit mode it shows only 2 decimal point.I have attached a file which show what I need in radgridview.
If it was possible I send you a demo about what I need
I will be realy thankfull if you could help me

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Mahsan
Top achievements
Rank 1
Share this question
or