This project is read-only.
1

Resolved

Grid Selection Row Strange Behaviour

description

I use in this example the sourceGrid.Grid ,
 
define
 

 
grid1.SelectionMode = SourceGrid.GridSelectionMode.Row;
 
grid1.Selection.EnableMultiSelection = false;
 

 
with the standard use ( mouseclick selection ) , all work fine but when i try to program the selection with the function selectrow() :
 
grid1.Selection.SelectRow(_RowIndex, true);
 
the grid don't remove the old selected row and the new one is also selected : no more one row selected

file attachments

comments

dariusdamalakas wrote Mar 10, 2010 at 9:13 AM

Fixed, changes are in the trunk

wrote Mar 10, 2010 at 9:13 AM

borchanii wrote Mar 10, 2010 at 12:19 PM

Thanks
but the issue still exist .
Steps to reproduce with the same form's exemple frmSample17 : disable multiselectionmode , choose selection for cell ,then choose the row selection and try to select with the numericUpDown1 , the bad behaviour will appear

dariusdamalakas wrote Mar 10, 2010 at 12:19 PM

** Closed by dariusdamalakas 10/03/2010 01:13

borchanii wrote Mar 10, 2010 at 12:19 PM

wrote Mar 10, 2010 at 12:20 PM

dariusdamalakas wrote Mar 10, 2010 at 2:53 PM

Hi borchanii.

You must first choose the selection mode, and only then disable multi selection

If you do otherwise, then the selection object will be recreated, and your setting to disable multi selection will be gone.

borchanii wrote Mar 10, 2010 at 3:30 PM

Thanks :)
It work well like you suggested.

dariusdamalakas wrote Mar 15, 2010 at 11:54 AM

Can this issue be closed?

borchanii wrote Mar 15, 2010 at 12:37 PM

Yes , sorry for opening it after close :)

dariusdamalakas wrote Mar 15, 2010 at 3:35 PM

No problem!
I would do the same if i were you

wrote Mar 15, 2010 at 3:40 PM

wrote Feb 22, 2013 at 1:09 AM

wrote May 16, 2013 at 12:27 PM

wrote May 16, 2013 at 12:27 PM

wrote Jun 14, 2013 at 8:30 AM