Row selection in GridDataControl (WPF)

Can you tell me how I can make the GridDataControl select rows when I drag the mouse down the row headers (similar to how MS Excel selects ranges of rows).

I have looked at the "Selectins" sample and tried combinations of AllowSelection and ListBoxSelectionMode but I can't make it work.

Thanks
Jeff


1 Reply

RA Rajasekar Syncfusion Team July 7, 2011 09:06 AM UTC

Hi Jeff,

You can achieve your requirement by setting the below properties,

Code Snippet[C#]

this.grid.ShowRowHeader = true;
this.grid.AllowSelection = GridSelectionFlags.Row | GridSelectionFlags.Column | GridSelectionFlags.Multiple;
this.grid.ListBoxSelectionMode = GridSelectionMode.None;

But, we are some facing behavioral problem with Row selection and Header Cell. So that, For providing the patch we have created the incident(#82320). Please update your queries in the incident #82320 for better follow up.

Please let us know if you have any queries.

Thanks,
Rajasekar



Loader.
Up arrow icon