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

How to get value of GridViewComboBoxColumn in Radgridview on RadGridView_ValueChanged Event ? (Windows form C#))

1 Answer 445 Views
GridView
This is a migrated thread and some comments may be shown as answers.
jack
Top achievements
Rank 1
jack asked on 08 Nov 2014, 11:25 AM
Hi.
I have a radgridview with a multi columns  and one column is a combobox , i want to validation row when user select a item in combobox on ValueChanged event in radgrid . how can i get value a cell (combobox) in radgridview on ValueChanged event  ?
plz help me .

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 10 Nov 2014, 11:34 AM
Hi Jack,

Thank you for writing.

In the ValueChanged event, you can get the cell value by using the CurrentCell property of RadGridView. This will be the value prior the change:
radGridView1.CurrentCell.Value

To get the new value, you can access the currently active editor vie the ActiveEditor property of the grid, and check its Value property:
radGridView1.ActiveEditor.Value

I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.

Regards,
Stefan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
GridView
Asked by
jack
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or