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.
Unfortunately, activation email could not send to your email. Please try again.

selected row

Thread ID:

Created:

Updated:

Platform:

Replies:

42531 Mar 30,2006 01:51 PM Mar 31,2006 12:16 AM Windows Forms 1
loading
Tags: GridControl
Hrvoje Voda
Asked On March 30, 2006 01:51 PM

How to get currently selected row? I want to put it''s information into dialog editor. I''m using GridDataBoundGrid control.

Administrator [Syncfusion]
Replied On March 31, 2006 12:16 AM

Hi Hrcko,

You can get the selected rows by using GetSelectedRow method in grid.Model.Selections. Below is the code snippet.
private void button1_Click(object sender, System.EventArgs e)
{
if(this.gridDataBoundGrid1.Selections.Ranges.Info != "")
if(this.gridDataBoundGrid1.Selections.GetSelectedRows(true,true).Count > 0)
MessageBox.Show(this.gridDataBoundGrid1.Selections.GetSelectedRows(true,true).ToString(),"Click");
}

Relevant KB articles:
How to get the selected ranges in a grid?
How do I access the cell values for all the selected rows?
Let us know if this helps.

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.

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.

;