how to set Excel like selection in GridDataControl

Hi,

Tell me procedure do Excel like selection in GridDataControl.
I tried like this not working...

this.grid.Model.Options.ExcelLikeCurrentCell = true;
this.grid.Model.Options.ExcelLikeSelectionFrame = true;

regards,
ram.



1 Reply

KR Karthick Ravichandran Syncfusion Team November 24, 2010 02:26 PM UTC

Hi Ram,

Thanks for choosing Syncfusion Product.

You can achieve your requirement by setting the ListBoxSelectionMode property as MultiExtentended to select the multiple rows in the GridDataControl. Please find the code snippet from the following.

[Code Snippet] [C#]
this.dataGrid.Model.Options.ExcelLikeCurrentCell = true;
this.dataGrid.Model.Options.ExcelLikeSelectionFrame = true;
this.dataGrid.Model.Options.AllowSelection = Syncfusion.Windows.Controls.Grid.GridSelectionFlags.Any;
this.dataGrid.ListBoxSelectionMode = GridSelectionMode.MultiExtended;

Please let us know if you need more information.

Thanks,
Karthick


Loader.
Up arrow icon