Looping through rows in datagrid

mrdance

Newcomer
Joined
Nov 24, 2003
Messages
16
How can I loop through the rows in a datagrid ( I want to deselect the rows )?

Is it easy to get the underlying row from a datarow in a datatable to the row in the datagrid?

thanks / Henrik
 
Take a look at question 5.4 on the Syncfusion DataGrid FAQ at: http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q1096q
Use the same thing but, with the Unselect method...

On the same FAQ, search for:
5.63 How do I iterate through all the rows and columns in my datagrid?

5.78 How do I retrieve the current row from a DataTable bound to a DataGrid after the grid has been sorted?


Bookmark this page... as DataGrid being as bad as it can be, it's good to have this on hand...

Alex :p
 
Last edited:
Back
Top