Hi Ramana,
Thank you for using Syncfusion products.
GridDataControl allows to add or remove the entire table from the selected ranges using the code as follows.
[Code Snippet] [C#]
private void Button_Click(object sender, RoutedEventArgs e)
{
this.dataGrid.Model.SelectedRanges.Add(GridRangeInfo.Table());
this.dataGrid.Model.InvalidateCell(GridRangeInfo.Table());
}
private void Button_Click_1(object sender, RoutedEventArgs e)
{
this.dataGrid.Model.SelectedRanges.Clear();
this.dataGrid.Model.InvalidateCell(GridRangeInfo.Table());
}
Please find the attached samples for your reference.
Sample:
Selection_Sample150419584.zipLet us know if you need any more information.
Thanks
Kamal.