protected virtual Selection.SelectionBase CreateSelectionObject()
{
switch (SelectionMode)
{
case GridSelectionMode.Cell:
return new Selection.FreeSelection();
case GridSelectionMode.Column:
return new Selection.ColumnSelection();
case GridSelectionMode.Row:
return new Selection.RowSelection();
default:
throw new ArgumentException("SelectionMode not valid", "SelectionMode");
}
}