Subject Re: [IBO] IB_Grid - Preventing Multiple Row Selection
Author Helen Borrie
At 01:45 PM 18/06/2008, you wrote:
>Hi
>
>I need to prevent users from selecting multiple rows in an IB_Grid.
>
>Setup is TIB_Grid - TIB_Datasource - TIB_Query.
>
>I cannot find any property to change this behaviour.
>
>Is it possible to prevent multiple row selection?

I don't think there's anything you can do to disable the visual behaviour - it comes with the underlying Windows grid control. The IB_Grid response to a multi-select is to add bookmarks to a TStrings (the SelectedBookmarks property of the dataset). Could you not use an event handler to clear yourIB_Query.SelectedBookmarks whenever the user tries to do something that could target a selection?

Helen