Hi,
The following code used to work in DBAdvGrid V2.3.2.0
for (int i = 0; i < DBGrid->SelectedRowCount; i++)
{
int row = DBGrid->SelectedRow;
int id = DBGrid->Ints[0][row];
...
}
I've just upgraded to DBAdvGrid V2.3.6.21 and this code now crashes because SelectedRowCount returns 2 when no rows are selected (presumably it is counting the header and footer rows as selected rows).
int row = DBGrid->SelectedRow returns -1 which then causes an array index exception on the following line.
If can work around this by checking that row is >= 0 but I have a lot of instances of this code throughout my app that I need to update.
Can you please confirm if this is a bug been introduced?
Regards
Adam