Here are the examples of the csharp api class System.Windows.Forms.DataGridViewComboBoxCell.ObjectCollection.Clear() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
0
1. Example
Project: xenadmin
Source File: SelectVMsToSuspendDialog.cs
Source File: SelectVMsToSuspendDialog.cs
private void UpdateDetails() { ImageCell.Value = Images.GetImage16For(Images.GetIconFor(Vm)); NameCell.Value = Vm.Name(); MemoryCell.Value = Util.MemorySizeStringSuitableUnits(Vm.memory_dynamic_max, true); ActionCell.ValueType = typeof(ActionCellItem); ActionCell.ValueMember = "ActionCell"; ActionCell.DisplayMember = "Text"; ActionCell.Items.Clear(); ActionCell.Items.Add(ActionCellItem.MigrateAction); ActionCell.Items.Add(ActionCellItem.SuspendAction); ActionCell.Items.Add(ActionCellItem.ShutdownAction); ActionCell.Value = ActionCell.Items[0]; }
0
2. Example
Project: xenadmin
Source File: NetworkPickerPage.cs
Source File: NetworkPickerPage.cs
private void SetNetworkList() { DataGridViewComboBoxColumn col = (DataGridViewComboBoxColumn)m_networkGridView.Columns["NetworkNetworkColumn"]; col.Items.Clear(); var networks = m_selectedConnection.Cache.Networks.Where(ShowNetwork); foreach (XenAPI.Network network in networks) col.Items.Add(new ToStringWrapper<XenAPI.Network>(network, network.Name())); col.DisplayMember = ToStringWrapper<XenAPI.Network>.DisplayMember; col.ValueMember = ToStringWrapper<XenAPI.Network>.ValueMember; col.Sorted = true; }