Главная страница | назад





Article #16797: which rows have been selected in a TDBGrid

 Question and Answer Database

FAQ1797C.txt   which rows have been selected in a TDBGrid
Category   :Database Issues
Platform    :All
Product    :C++Builder  1.x

Question:
In a MultiSelect DBGrid, how can I determine which rows have 
been selected?

Answer:
Use the SelectedRows property of the TDBGrid component.
   Example:

   for (int i =0; i < DBGrid1->SelectedRows->Count -1; i++)
      Table1->GotoBookmark(TBookMark(DBGrid1->SelectedRows->Items[i]));

7/2/98 10:32:32 AM
 

Last Modified: 01-SEP-99