S
Sam
Hi,
I've got a datagrid and a dataset used as the datasource.
I'd like to do a test, if the index of the selected row in the grid is
greater than the dataset.tables(0).rows.count. The problem is that if I
edit the last row of the grid, a new row will be added below and to the
dataset. Therefore the number of rows in the dataset won't be equal to
the number of records in the database. How can I get the number of rows
in the dataset originally ?
Thx
I've got a datagrid and a dataset used as the datasource.
I'd like to do a test, if the index of the selected row in the grid is
greater than the dataset.tables(0).rows.count. The problem is that if I
edit the last row of the grid, a new row will be added below and to the
dataset. Therefore the number of rows in the dataset won't be equal to
the number of records in the database. How can I get the number of rows
in the dataset originally ?
Thx