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

Selection works with mouse but not keyboard

Thread ID:





67457 Aug 20,2007 12:50 AM UTC Aug 20,2007 04:28 AM UTC WinForms 1
Tags: GridControl
Kent Boogaart
Asked On August 20, 2007 12:50 AM UTC


I am using a GridDataBoundGrid control. If the user clicks a row I can use Selections.GetSelectedRange(...) to get the row. If the user uses the up and down cursor keys to change rows, the Selections.GetSelectedRange(...) method returns nothing.

How can I allow both clicking on a row and cursoring through rows to affect the selection?


Jeba S [Syncfusion]
Replied On August 20, 2007 04:28 AM UTC

Hi Icd,

Thank you for your details.

You can handle the SelectionChanged event and get the selected row using mouse and keyboard.

void Model_SelectionChanged(object sender, Syncfusion.Windows.Forms.Grid.GridSelectionChangedEventArgs e)
GridRangeInfoList rangelist;
this.gridDataBoundGrid1.Selections.GetSelectedRanges(out rangelist, true);
foreach (GridRangeInfo range in rangelist)

Please refer the sample which implements the above said feature.

Kindly let us know if you need any further assistance.

Thank you for using Syncfusion Products.

Best Regards,


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

This page will automatically be redirected to the 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