//Event Triggering
this.gridGroupingControl1.RecordNavigationBar.ArrowButtonClicked += RecordNavigationBar_ArrowButtonClicked;
//Event Customization
private void RecordNavigationBar_ArrowButtonClicked(object sender,ArrowButtonEventArgs e)
{
//To clear the selection
this.gridGroupingControl1.TableModel.SelectedRanges.RemoveAt(0);
} |
The setting(s) I have that seem to be of value in the scenario where after selecting a few items from the list and then clicking on the textbox and losing the selection...
In Grouping Control Section
ActivateCurrentCellBehaviour = Select all
AllowSetCurrentRecordOnFocus = False
Table Options Section
AllowSelection = Row, Multiple, AlphaBlend
ListBoxSelectionMode = MultiSimple
ListBoxSeceltion Recursive = Tru
When the grid loads NO items are selected, or shown as selected,
If I then proceed to select Items in the list and click on the textbox, the GridControl loses its selections and by default selects only the first item in the grid. (all other selections are deselected and first item in grid is selected even if it was not selected before)
If I however select the very first item in the list first and then select the other items and click on the textbox the selections are not lost.