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.
I need to catch a value change in a ComboBox style cell of a GridGroupingControl, just when it happens, to change that cell's color. Or alternatively, force the row programmatically to commit its changes to the datasource in the CloseUp event of the GridDropDownContainer hosted by the cell, in order to use the RowChanging event of a DataTable.
The problem is that the cell doesn't commit its changes until you leave the row, but I need to change the color immediately, based on the value selected from the ComboBox.
HAhaneefm Syncfusion Team May 23, 2007 03:53 PM UTC
Hi Jose,
You can handle the TableControlCurrentCellCloseDropDown event of the grid and call the CurrentCell.EndEdit method followed by the Table.EndEdit method to commit the selection changes in a Drop Down. Here is a code snippet.
If you want to catch the new value in a combobox cell, you need to use Renderer.ControlValue property in a TableControlCurrentCellChanged event. Here is a code snippet.
GridCurrentCell cc = e.TableControl.CurrentCell; if(cc.Renderer is GridComboBoxCellRenderer) { Console.WriteLine("New Value" + cc.Renderer.ControlValue); Console.WriteLine("New Text" + cc.Renderer.ControlText);