[Solved] Can I add column Index number per Datarow (automatic) for Datatable?

Hi Durai,
When I choose Datagrid.datasource = Datatable, the datagrid displays the data exactly as I expected, but can I add a column number to it? 1,2,3, .... Datatable.rows.count without having to fix the source data?
Does the datagrid have this property?

4 Replies

TG The GridLock April 27, 2020 10:48 AM UTC



SS Susmitha Sundar Syncfusion Team April 28, 2020 06:55 AM UTC

Hi GridLock, 
 
Thanks for the update. 
 
We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you. 
 
Regards, 
Susmitha S 



TG The GridLock April 28, 2020 12:41 PM UTC

Hi Susmitha,
How to using SfDataGrid1_DrawCell event only at Form_Load. It seems to always work when there are other events, affecting my performance
Edit: I didn't think of removing this event as soon as it was finished, it worked now!


SS Susmitha Sundar Syncfusion Team April 29, 2020 08:38 AM UTC

Hi GridLock, 
 
Thanks for the update. 
 
We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you. 
 
Regards, 
Susmitha S 


Loader.
Up arrow icon