This is a migrated thread and some comments may be shown as answers.

Double click a row in Datagrid

1 Answer 401 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sugu
Top achievements
Rank 1
Sugu asked on 25 May 2007, 12:59 PM
Hi,
I have a Data grid in a Winform which has been binded with a table called Student with 10 rows.
In the same form, I have 3 Label and  textbox controls. when i double click particular row in th grid, the respective data should be displayed in those Textboxes.
Let us take I have 3 fields in my Student table.( StudentNo, Name, Dept).
Can you suggest me what would be the solution to do this?

Regards,
SugumarR

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 25 May 2007, 02:15 PM
Hello Sugu,

Please handle the double click event of the RadGridView. This event will be fired when the user double clicks a row header cell. In the handler of the event, access the current row cells collection using the following syntax:
 
/*this will access second cell in current row*/
string cellText = radGridView1.MasterGridViewInfo.CurrentRow.Cells[1].Value.ToString();


For more information, please consult the source code in the examples in the Telerik Quick Start Framework.

Kind regards,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
Sugu
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or