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.
When editing a cell in a GridDataBoundGrid, i need to get the value of the selected item in a ComboBox of a cell in a different column but same row. To do this I assume I need to get a reference to GridComboBoxCellRenderer.
I can''t see how to get this reference. I can get the GridStyleInfo like:
ADAdministrator Syncfusion Team October 3, 2006 05:01 AM UTC
Hi Vito,
You can use the GetCellRenderer method to get the reference to the GridComboBoxCellRenderer in a grid and use the ListBoxPart.SelectedItem property to get the selected item of the combo box cell. Below is a code snippet
GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell; GridStyleInfo style = this.gridDataBoundGrid1.Model[cc.RowIndex,5]; GridComboBoxCellRenderer cr = this.gridDataBoundGrid1.GetCellRenderer( cc.RowIndex,5) as GridComboBoxCellRenderer;