Board index » cppbuilder » TDBGrid->DataSet->RecNo is always -1
AndrĂ¡s Raczenb?c
![]() CBuilder Developer |
Sun, 11 May 2003 03:00:00 GMT
TDBGrid->DataSet->RecNo is always -1
Hi for all,
I have a little form with one DBGrid, I want to fill all 2nd row in the In the helpfile : The DataSource comes from the Owner component, the DataSet is a TQuery My Code is: iRowIndex = Grid->DataSource->DataSet->RecNo; // this is always -1 Grid->Canvas->FillRect(Rect); if (iRowIndex % 2 == 0) Quote} How can I access the valid RecNo ? Greetings, |