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

How to get ValueMember value of GridViewComboBoxColumn

1 Answer 291 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sneha
Top achievements
Rank 1
Sneha asked on 30 Jul 2019, 05:25 AM
Hi,
Is there anyway to retrieve the ValueMember value of GridViewComboBoxColumn in the CellEndEdit ? Thanks.

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 30 Jul 2019, 10:46 AM
Hello, Sneha,   

The GridViewComboBoxColumn.ValueMember property controls what field of the column's DataSource will be stored to the cell's Value. In the CellEndEdit event you have access to the data row/column from where you can extract the cell's value as follows:

private void radGridView1_CellEndEdit(object sender, GridViewCellEventArgs e)
{
    var cellValue = e.Row.Cells[e.ColumnIndex].Value;
}

Note that most of the forum threads are reviewed by Telerik representatives and sometimes we address the questions asked by our customers in the forums as well. However, a post in the forum doesn't guarantee you a response from the Telerik support team. Moreover, threads are handled according to license and time of posting, so if it is an urgent problem, we suggest you use a support ticket, which would be handled before a forum thread.

Thank you for your understanding.

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
Sneha
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or