public void MoveUp(bool Select)
{
CropPosition();
int x = OldLogicalXPos;
//error here
try
{
if (CurrentRow != null && CurrentRow.PrevVisibleRow != null)
{
Position.Y = CurrentRow.PrevVisibleRow.Index;
if (CurrentRow.IsCollapsed)
{
x = 0;
}
}
}
catch
{
}
finally
{
CropPosition();
LogicalPosition = new TextPoint(x, Position.Y);
CropPosition();
CaretMoved(Select);
}
}