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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Row selection in GridDataControl (WPF)

Thread ID:





100096 Jul 4,2011 02:28 PM UTC Jul 7,2011 09:06 AM UTC WPF 1
Tags: GridControl
Jeff King
Asked On July 4, 2011 02:28 PM UTC

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.


Rajasekar [Syncfusion]
Replied On 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.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon