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

How programmatically select a row in grid

Thread ID:

Created:

Updated:

Platform:

Replies:

66497 Jul 30,2007 02:04 PM UTC Jul 31,2007 09:17 PM UTC WinForms 1
loading
Tags: Tools
mineev
Asked On July 30, 2007 02:04 PM UTC

How do I programmatically select a row in Syncfusion.Windows.Forms.Grid.GridDataBoundGrid?


Madhankumar [Syncfusion]
Replied On July 31, 2007 09:17 PM UTC

Hi Mineev

Thank you for your patience.

This can be achieved by setting the ListBoxSelectionMode to One and adding the required row to be selected to the grid selections. The following is the code snippet.

++++++++ Code Snippet ++++++++
this.gridDataBoundGrid1.ListBoxSelectionMode = System.Windows.Forms.SelectionMode.One;

////To select the row programattically, Use the below code
gridDataBoundGrid1.Model.Selections.Add(Syncfusion.Windows.Forms.Grid.GridRangeInfo.Row(2));
++++++++ Code Snippet ++++++++

Kindly let us know if you need any further help.
Have a nice day.

Best regards,
Madhan

CONFIRMATION

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.

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

;