DataGrid RowCount or RowSelection

snufse
01-27-2004, 10:40 AM
I have a datagrid with x number of rows. I need to capture the row number user has clicked on. I have tried to use:

RowNumber = 0
RowSelected = DataGrid1.IsSelected(RowNumber)

but this line points to a specific row number only. Can I loop thru the grid like an array and check if any rows have been selected. If so what is the upperbound property for the grid array.

Maybe somebody has other solution ?? Thanks.

VBJoe
01-27-2004, 06:41 PM
The .CurrentRowIndex property returns (or sets) the currently selected row of a Data Grid.

To get the row count, bind a DataView to the Data Grid. .Count is a property of the Data View.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum