MS
Mohamed 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.
-Fahad