Hello,
I am implementing a list box control using an UltraGrid and I would like to have the behavior of a 'toggable list' (click once to select a row, click again to deselect). Currently, I have it working as desired, except the user has to hold down the ctrl key. Is there any mechanism to have my control act as if the user is always holding down ctrl?
Thanks in advance.
see attached
Hi there, this is what I have been looking for, but this is to old, it is giving me problems to migrate it to 19.1, by the chance is there some updated version for this example or some article to follow? Thank you
Hi,
The only tricky part of updating this sample to v19.1 is that the original sample was targetting CLR2. So I updated the project to v19.1 and CLR4 and attached it here.
MultiSelectNoControlKey.zip
Thank you so much, this version runs perfect. I have a question, I don't see how the the code in SelectionStrategyExtended class is integrated with the grid, where is that integration made?
Here is a VB sample
Multi-Select.zip
Mike,
Any chance you have a vb.net example of this?
It's essentially done by this line of code:
this.grid.SelectionStrategyFilter = new SelectionStrategyFilter( this.grid );
The grid calls into the SelectionStrategyFilter and the SelectionStrategyFilter returns the ISelectionStrategy implementation.