I need to check which rows in a datagrid have been selected. I'm using a checkbox column the users can click on to select a row. My problem is that all the examples for VB .Net contain datagrid.items which when I try to use I'm told "Items is not a member of Datagrid". Even the example in MSDN uses this method.
Example:
Example:
' Iterate through each item (row) in the DataGrid control
' and determine whether it is selected.
Dim item As DataGridItem
For Each item In MyGrid.Items
Am I doing something worng or is this a typo and .Items no longer supported in .Net?' and determine whether it is selected.
Dim item As DataGridItem
For Each item In MyGrid.Items
DetermineSelection(item, count)
Next