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.
In the show AddNewRow, I have a cell which type is an enum "MyEnum" and I'd like the user to be able to choose an enum value in the cell. So is it possible by doing this?
MSMohamed Suhaib Fahad A. Syncfusion Team February 11, 2010 12:11 PM UTC
Hi Francois,
Use the Model.QueryCellInfo event handler to change the CellType for the AddNewRow,
void Model_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e) { var gridStyle = e.Style as GridDataStyleInfo; if (gridStyle.CellIdentity.TableCellType == GridDataTableCellType.AddNewRecordCell) { if (gridStyle.CellIdentity.Column != null && gridStyle.CellIdentity.Column.MappingName == "CustomerID") { gridStyle.CellType = "ComboBox"; e.Handled = true; } } }
The VisibleColumn.ColumnStyle only applies to the Record cells. AddNewRow may require a separate property like AddNewRowStyle, Please let us know if you need any more details.