First row is automatically selected
I am using a GridGroupingControl and I have enabled the ability to select multiple rows.
The problem I am having is that when I select a row during runtime the first row also gets selected automatically and it forces me to deselect the row by clicking on it.
I would like to know which setting needs to be enabled or disabled to stop the first row from being selected automatically.
This only happens when I make the first selection.
e.g. navigate to page which has grid --> grid displays and is populated with 10 rows --> I select row 5
Excepcted result: Row 5 is selected
Actual result: Row 1 and Row 5 is selected
if I deselect Row 1 and select Row 7, only rows 5 and 7 are now selected which is expected, except that I don't want to have to deselect row 1 just because it is being selected automatically the first time I try to select a row..
Grid Setup:
Allow Selection = Row, Multiple, AlphaBlend
ListBoxSelectionMode = MultiSimple
ListBoxSelectionRecursive = False
Thanks in Advance
Janine
|
//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);
} |
it is working as expected now.
I have an additional question with the multi select
I have an assign location textbox outside of the grid.. and when I select multiple rows to assign the same location to all the selected rows I seem to lose the selection. as soon as I click on the textbox..
How can I keep the selected rows and when I click on a different control on the form that is outside of the Grid?
regards
Janine
- Tested with all GridSelectionFlags.
- Tested with all ListBoxSelectionMode.
- Tested with ListBoxSelectionRecursive enabled and disabled.
- Tested with all ListBoxSelectionCurrentCellOptions.
- A screenshot/video of your requirement/scenario with exact use case. So that, we could reproduce the issue.
- Refer the attached sample and let us know if we missed anything from your customization.
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.
- 5 Replies
- 2 Participants
-
JH Janine Herman
- Oct 4, 2017 07:53 AM UTC
- Oct 17, 2017 11:35 AM UTC