2
Vote

FixedColumns>1 and SelectionMode.Row problem

description

Selection box left border doesn't start at the row beginning. It starts within 3rd column.
And left side of selection jumps when i do horizontal scroll.
grid.SelectionMode = Row;
grid.FixedColumns = 3;

First column contains RowHeader
2nd and 3rd columns - Cell

file attachments

comments

oktilon wrote Feb 5, 2014 at 10:28 AM

I've solved the problem. In GridVirtual.cs, in
public Range RangeAtAreaExpanded(CellPositionType areaType)
line 800 had:
int startCol = range.Start.Column > 0 ? range.Start.Column - 1 : 0;
i changed it to:
int startCol = (range.Start.Column > 0 && FixedColumns == 0) ? range.Start.Column - 1 : 0;

wrote Jul 3, 2015 at 7:01 AM