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

How to access combobox column in RadGridView in selected row?

1 Answer 208 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Asa'ad
Top achievements
Rank 1
Asa'ad asked on 24 May 2011, 08:59 AM

i'm using RadGridView control to expose data, i added columns type of GridViewComboBoxColumn,
when you clik on certain cell to edit, it will be shown as ComboBox.My question is:

How to access the combobox in the RadGridView to get the selected values or item ?

Any Help will be appreciated!!!
Thanks in advance...
Asa'ad....

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 25 May 2011, 04:50 PM
Hello Asa'ad,

Thank you for writing.

When a combo box is bound to some source, the value that the cell will return depends on the setting introduced to the ValueMember property of the column. This value can be accessed through the value property of the cell:
var value = radGridView.Rows[0].Cells{"MyColumnName"].Value;

Additional information about GridViewComboBoxColumn can be found in this help article.

I have deleted the other thread which you have opened regarding the same subject in the General Discussions forum. Please avoid posting numerous threads regarding the same subject, since this slows down our response time.

Thank you for the understanding. I hope the provided information addresses your question. Should you have any other questions, do not hesitate to contact us.
 
Best wishes,
Stefan
the Telerik team
Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
Tags
GridView
Asked by
Asa'ad
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or