Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dbgrid select records by code 1

Status
Not open for further replies.

DelphiAaron

Programmer
Jul 4, 2002
826
0
16
AU
can you select multiple records on a dbgrid by code not by clicking the grid ?

Aaron Taylor
John Mutch Electronics
 
You can use the TBookmarkList class.

myDbGrid.SelectedRows.CurrentRowSelected := true;

Just traverse your dataset and set the CurrentRowSelected according to your needs for the current record.

regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top