How to implement Thosand seperator in asp.net [modified]
-
i have an asp.net bound column. this column gets it values from the dataset. the values displayed are displayed as 123456. i want it to be displayed as 1,23,456. i tried using dataformatstring="{0:n}, but is of no use. please help. -- modified at 4:08 Monday 13th November, 2006
-
i have an asp.net bound column. this column gets it values from the dataset. the values displayed are displayed as 123456. i want it to be displayed as 1,23,456. i tried using dataformatstring="{0:n}, but is of no use. please help. -- modified at 4:08 Monday 13th November, 2006
You should use the DataFormatString property to format the data as you wish. In your case it would be something like: {0:#,###}
Cheers, Dani
-
i have an asp.net bound column. this column gets it values from the dataset. the values displayed are displayed as 123456. i want it to be displayed as 1,23,456. i tried using dataformatstring="{0:n}, but is of no use. please help. -- modified at 4:08 Monday 13th November, 2006
-
You should use the DataFormatString property to format the data as you wish. In your case it would be something like: {0:#,###}
Cheers, Dani
-
can you post some code?
Cheers, Dani
-
can you post some code?
Cheers, Dani
-
Try adding an
HTMLEncode="false"
to the same line..."Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox