Subject | RE: [IBO] Multi select |
---|---|
Author | Alan McDonald |
Post date | 2006-10-27T12:39:07Z |
> Alan McDonald wrote:thanks - selectAll works - seems to work with records out of view - by
> > Does anyone know the method to clear the rfSelected flags?
> > the SelectedBookMarks method fills the stringlist.
> > You can then for loop through the bookmarks dealing with the records in
> > whatever manner you wish.
> > But how do you either clear the selected rows in one method or
> individually
> > as you go.
> > Otherwise the the grid is left with selected records whic users find
> > annoying.
> > I've tried to set RowFlags directly but its readonly.
>
> dataSet.SelectAll(State: Boolean)
>
> Be ware that it will only work on "visible" records in a detail.
>
> There also seems to be:
>
> procedure TIB_BDataset.ToggleSelected; and
> procedure TIB_BDataset.SelectRange( StartRow, EndRow: longint;
> State, Exclusive: boolean );
>
> I haven't used the latter ones.
>
> /Dany
visible do you mean still in the buffer?.
I found this other method
SetBookmarkSelected(BookMark, False)
but I can't get access to it - it's in the base class TIB_BDataset.
The source is clearing the rfselected flag - I don;t know why I can't get
access to it.
Alan