You are not logged in.
This forum has been archived and no longer accepts new user registrations. Please report your questions, problems, and feedback to the issue page of ReoGrid on GitHub. Thank you for your cooperation.
Pages: 1
Topic closed
// not work
ReoGrid.CurrentWorksheet.BeforeSelectionRangeChange += (s, e) => {
if (e.StartCol ==0)
{
e.StartCol = 1;
}
};
// work
ReoGrid.CurrentWorksheet.BeforeSelectionRangeChange += (s, e) => {
if (e.StartCol == n) //where n > 0
{
e.StartCol = 1;
}
};
ver 1.3 and 1.2
Offline
Not sure what you want do to, but you can't set StartCol greater than EndCol, if mouse clicked on column 0, both StartCol and EndCol are 0, so it is nessarary to set EndCol > or = StartCol, for example:
sheet.BeforeSelectionRangeChange += (s, e) => {
if (e.StartCol == 0)
{
e.StartCol = 1;
e.EndCol = 1;
}
};
Last edited by Jingwood (2016-08-07 15:24:47)
Offline
Oh... Thank you! I did not think about the EndCol
Offline
Pages: 1
Topic closed