DelphiFAQ Home Search:
General :: Programming :: Delphi :: VCL
About the Delphi VCL (Visual Component Library)


This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.

This is the FULL list of all articles in this category.

Featured Article

Working with multiselect grids

Delphi 2.0 multiselect grids have an undocumented SelectedRows property, a TBookmark list.
You can use it with code like this:

with DbGrid1 do
   for i := 0 to SelectedRows.Count-1 do
     DataSource.DataSet.Bookmark := SelectedRows[i]; 
     { the dataset is positioned on the selection. do your stuff } 
You don't like the formatting? Check out SourceCoder then!
Generated 0:01:08 on May 28, 2020