The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
hi to all,
i have a cell that contains a combobox filled with a dataset of countries.
on CurrentCellChanged event (when i choose a country) i need to get the value and display member of the element chosen by the user in the combobox
does anyone has any ideas ?
best regards and thanks in advance
fady
ADAdministrator Syncfusion Team April 11, 2006 09:40 AM UTC
Hi Fady,
You can get the display member and value member of the combobox using ControlValue and ControlText property in the CurrentCell.Renderer
Code Snippet:
private void gridDataBoundGrid2_CurrentCellChanged(object sender, System.EventArgs e)
{
GridCurrentCell cc = this.gridDataBoundGrid2.CurrentCell;
Console.WriteLine("Display Member : " + cc.Renderer.ControlValue + "Value Member : " + cc.Renderer.ControlText);
}
Best regards,
Madhan