Board index » delphi » Keep DbGrid.SelectedRows when right-clicking ( for popup menu )

Keep DbGrid.SelectedRows when right-clicking ( for popup menu )

I want to perform actions on a selectedRows in a DbGrid, using popup
menu.

As soon as I right-click in the dbGrid the popup menu shows but the
selectedRows in the grid go away.

How can I keep the selectedRows when popuing up the menu ?

Luc Harnois

 

Re:Keep DbGrid.SelectedRows when right-clicking ( for popup menu )


Try OnSelectionChange  to register the range of the grid selected and to
"hold" that before your double-click.

Cheers    Derham McAven

Other Threads