Remove Range

hi,

let says the datagrid range is {R6:R8}, how to i remove the range R7 programmatically and make R6 and R8 remain selected?

Thanks!

1 Reply

AD Administrator Syncfusion Team March 21, 2007 02:35 PM UTC

Hi Lim,

Use the Model.Selections property to manages selected ranges in the grid. It allows you to add, remove and get selections, determines selection state of a specific cell.

this.grid.Model.Selections.Add(GridRangeInfo.Rows(3,5));
this.grid.Model.Selections.Remove(GridRangeInfo.Row(4));

Best regards,
Haneef

Loader.
Up arrow icon