Subject Re: Grid multi-select behaviour
Author DanyM
I would like to think that calling

procedure TIB_BDataset.SelectAll( State: boolean );

with false for the argument will deselect all selected records.

like so;


I also believe that this could be done in some scroll event. I vaguely remember that the TIB_Grid scrolls the dataset when rows are clicked w/o Ctrl or Shift.

Take care if you implement multiselect in a child (detail). Even though the master has scrolled, the records selected for a different master will remain selected (IMO a very neat thing if handled with some care - the user will not be able to see the selected records for the non current master so one must implement some other means of indication, perhaps outside the grid). I think you should be able to find an event (either at the master or the detail) to call SelectAll(false) when the master scrolls as well.



--- In, "Antti Kurenniemi" <Antti@...> wrote:
> Hi all.
> Is there a way to make the IBO grid(s) multi-select behave more like common
> windows controls? The way it is now is a little bit difficult / confusing to
> my users; the "sticky" selection, even after clicking on an un-selected item
> the selection remains, and it's also less than obvious how to un-select
> multiple items from the list.
> I've tried checking the properties but can't figure out a way to get the
> grid to have "normal" multi-select functionality. Any help appreciated.
> TIA,
> Antti Kurenniemi