We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Excel Selection in GridDataControl

Hi all,
I'm using GridDataControl and GridControl.
It is possible to have the 'excel selection' in the GridDataControl

I'd like to select:
- Multiple rows.
- Multiple columns.
- A range form A2 to C4.

Best

Francisco


2 Replies

FR Francisco November 3, 2011 07:00 PM UTC

Setting the 'AllowSection' on the grid it doesn't work.

It is possible select many rows, many columns on the GridDataControl?

Best
Francisco





RA Rajasekar Syncfusion Team November 21, 2011 09:15 AM UTC

Hi Francisco,

You can achieve your requirement by using the below code snippet,

For Multiple Row Selection:

dataGrid.ListBoxSelectionMode = GridSelectionMode.MultiExtended;
dataGrid.AllowSelection = GridSelectionFlags.Row;

For Multiple Column Selection:

dataGrid.ListBoxSelectionMode = GridSelectionMode.None;
this.dataGrid.AllowSelection = GridSelectionFlags.Column | GridSelectionFlags.Multiple | GridSelectionFlags.Shift;

Please let us know if you have any queries.

Thanks,
Rajasekar




Loader.
Live Chat Icon For mobile
Up arrow icon