Hi Julius,
Thanks for using Syncfusion product.
You can able to add the additional items to the datasource which is bind with ComboBox column in SfDataGrid. Please find the below code snippet here the orderInfo.ShipCityDetails is bind with DataSource of the GridComboBoxColumn,
this.sfDataGrid1.Columns.Add(new GridComboBoxColumn() { MappingName = "ShipCityID", HeaderText = "Ship City", DisplayMember = "ShipCityName", ValueMember = "ShipCityID", DropDownStyle = DropDownStyle.DropDownList, DataSource = orderInfo.ShipCityDetails });
|
Please find the below screen shot with before adding new item to column,
Now you can add the additional items in button click or any other event like below,
private void button1_Click(object sender, EventArgs e)
{
orderInfo.ShipCityDetails.Add(new ShipCityDetails() { ShipCityName = "Los Angles", ShipCityID = 137 });
} |
Please find the below screen shot which shows the new item is added into the combobox,
Please find the sample for your reference below,
If we misunderstood your requirement, please provide more information regarding the requirement. This would help us to proceed further.
Regards,
Jagadeesan