Datagrid Customization
-
Hey guys, how can i have the access to all the cells in the datagrid, is it like the 2 dimensional array ? i know i can reach cell 1 and 2 and so on but wat about the cells behind it.
Estarta
-
Hey guys, how can i have the access to all the cells in the datagrid, is it like the 2 dimensional array ? i know i can reach cell 1 and 2 and so on but wat about the cells behind it.
Estarta
you can always count the number of cells in a datagrid. so you can iterate through them.
Pradipta Basu
-
you can always count the number of cells in a datagrid. so you can iterate through them.
Pradipta Basu
Thanks for your reply. can u give a small example if u don't mind :)
Estarta
-
Thanks for your reply. can u give a small example if u don't mind :)
Estarta
Hope this code will help Let the datagrid be dg.
foreach(DataGridItem dgItem in dg.Items) for(int i = 0; i < dg.Columns.Count; i++) { TableCell tc = dgItem.Cells[i]; //do the coding with table cell }
Pradipta Basu
-
Hope this code will help Let the datagrid be dg.
foreach(DataGridItem dgItem in dg.Items) for(int i = 0; i < dg.Columns.Count; i++) { TableCell tc = dgItem.Cells[i]; //do the coding with table cell }
Pradipta Basu
Thanks alot :)
Estarta