Subject Re: [IBO] Multi select
Author Dany M
Alan McDonald wrote:
> 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