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, I have a grid with dropdown for each cell. My problem is, when I select the value from the Dropdown and than try to read the CellValue programatically, it still shows me the CellValue = "". But if I move off of the cell to another cell, and than read the CellValue from previous cell, it works fine. Could you please let me know how to work this around? (it's urgent) thanks Deepak
RCRajadurai C Syncfusion Team January 10, 2009 06:33 AM UTC
Hi Deepak,
Thanks for your interest in Syncfusion products.
You can retrieve the selected item in combobox by handling CurrentCellCloseDropDown event with the following code:
If it is GridControl, this.gridControl1.CurrentCellCloseDropDown += new Syncfusion.Windows.Forms.PopupClosedEventHandler(gridControl1_CurrentCellCloseDropDown); void gridControl1_CurrentCellCloseDropDown(object sender, Syncfusion.Windows.Forms.PopupClosedEventArgs e) { GridCurrentCell cc = this.gridControl1.CurrentCell; Console.WriteLine(cc.Renderer.ControlText.ToString()); }
If it is GridGroupingControl, this.gridGroupingControl1.TableControlCurrentCellCloseDropDown += new GridTableControlPopupClosedEventHandler(gridGroupingControl1_TableControlCurrentCellCloseDropDown); void gridGroupingControl1_TableControlCurrentCellCloseDropDown(object sender, GridTableControlPopupClosedEventArgs e) { GridCurrentCell cc = this.gridGroupingControl1.TableControl.CurrentCell; Console.WriteLine(cc.Renderer.ControlText.ToString()); }