public void SetItems(DataGridViewComboBoxCell.ObjectCollection items) { if (Nodes.Count > 0) { return; } foreach (var group in items.Cast <TreeComboBoxItem>().GroupBy(x => x.Group)) { var parent = Nodes.Add(group.Key.ToString()); foreach (var item in group) { parent.Nodes.Add(item.Display).Tag = item.Value; } } Sort(); }
public void AddRange(DataGridViewComboBoxCell.ObjectCollection value);