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.
HAhaneefm Syncfusion Team October 2, 2007 05:33 PM UTC
Hi Coder12345,
You can handle the CurrentCellShowingDropDown event of the grid and remove the duplicated item using the gridComboBoxCellRenderer.ListBoxPart.Items.RemoveAt method. Here is a code snippet.
private void gridControl1_CurrentCellShowingDropDown(object sender, Syncfusion.Windows.Forms.Grid.GridCurrentCellShowingDropDownEventArgs e) { GridComboBoxCellRenderer cr =(GridComboBoxCellRenderer) this.gridControl1.CurrentCell.Renderer; if(cr!=null) { for (int i = 0; i < cr.ListBoxPart.Items.Count; i++) { for (int j = 0; j < cr.ListBoxPart.Items.Count; j++) { if (i != j && cr.ListBoxPart.Items[i].Equals(cr.ListBoxPart.Items[j])) { cr.ListBoxPart.Items.RemoveAt(i); i--; break; } } } } }