How to set the default display text for GridComboBox column in WinForms DataGrid (SfDataGrid)?
In SfDataGrid, GridComboBoxColumn does not have direct support to display default text on it when there is no selected Item. You can change default text using SfDataGrid.DrawCell event.
this.sfDataGrid.DrawCell += SfDataGrid_DrawCell;
private void SfDataGrid_DrawCell(object sender, Syncfusion.WinForms.DataGrid.Events.DrawCellEventArgs e)
{
if(e.Column.MappingName == "ShipCountry" && string.IsNullOrEmpty(e.DisplayText))
{
e.DisplayText = "Select Item";
}
}
Visual Studio 2015 and above versions