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.
Hello I have a related grid with 3 columns:
ID
SourceType
Parameter Value
For each record in this related table I want to change the celltype depending on the value in the SourceType cell. For example:
-In my 1st record the SourceType contains a value of 1, then I want the corresponding cell in the Parameter Value to bind to a combobox which relates to another DataTable.
-In my 2nd record the SourceType contains a value of 2, then I want the corresponding cell in the Parameter Value column to bind to a editable textbox.
etc, etc.
Is this possible in the gridgrouping control, and if so, what is the best way to accomplish this?
Hope you can help!
Albie
ADAdministrator Syncfusion Team June 9, 2005 01:27 AM UTC
To dynamically change cell values, you can handle the grid.QueryCellStyleInfo. In the event handler, you can use this code to get at the parent record of the child table that holds the requested cell.
GridRecord rec = e.TableCellIdentity.DisplayElement.ParentChildTable.ParentNestedTable.ParentRecord as GridRecord;