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. Image for the cookie policy date

selected row

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

1 Reply

AD Administrator Syncfusion Team March 31, 2006 05:16 AM UTC

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.

Loader.
Live Chat Icon For mobile
Up arrow icon