Determine which grids are selected in a multigrid form..?

Posted by MBeynon on 23-Apr-2013 06:44

Hi,

I have a number of grids within a single form and it is possible to drag and drop between them. I've coded functionality for Drag n Drop but there is also a requirement

to enable the users to select rows from the grids and perform the same drag n drop action but via a menu.

What's the best way to detect which grids are selected? Is it possible to have more than one grid in focus or will I have to examine the form's component tree and determine which grids

have rows selected in them?

Many thanks,

Mark.

All Replies

Posted by jquerijero on 06-May-2013 14:01

You should be able to inspect the ActiveRow property.

Posted by MBeynon on 08-May-2013 02:28

Thanks, I'll try this approach.

Mark.

Posted by jquerijero on 08-May-2013 10:03

Also UltraGrid has SelectedRows object that you can check. You probably just need to make the menu option very specific (ex. Copy grid A to grid B, Copy grid B to grid A).

This thread is closed