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

Giving Comma separator to values inside Grid

3 Answers 68 Views
Grid
This is a migrated thread and some comments may be shown as answers.
A2H
Top achievements
Rank 1
A2H asked on 22 Jul 2010, 06:19 AM
Hi all,
    I have a req in which i have to give comma separator to numeric values inside the grid.How can we do this.

Thanks,
A2H

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 22 Jul 2010, 08:43 AM
Hello,

You can access the control in ItemCreated event and set the property as per your requirement. Take a look at the following documenattaion.
Referencing controls in grid row/edit form


-Shinu.
0
A2H
Top achievements
Rank 1
answered on 22 Jul 2010, 12:15 PM
Hi,
I googled and find that we have to set 'Dataformatstring' for each column inorder to display data in a formatted way.

I have set the dataformat string for each column but still the comma separator is not coming .Is there any thing else which we have to set for making the vlaues inside the grid formated.

Thanks,
A2H
0
A2H
Top achievements
Rank 1
answered on 23 Jul 2010, 07:55 AM
Hi All,
    I solved it.In Mycase I have to use export functionality also.So I always convert the value from List to datatable and the bind the datatabel to grid.This was causing problem.

Once I bind the grid with the list every thing is working fine.Comma separators are coming properly.
Thanks,
A2H
Tags
Grid
Asked by
A2H
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
A2H
Top achievements
Rank 1
Share this question
or