System.Windows.Forms.DataGridViewComboBoxCell.ObjectCollection.Contains(object)

Here are the examples of the csharp api class System.Windows.Forms.DataGridViewComboBoxCell.ObjectCollection.Contains(object) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

3 Examples 7

1. Example

Project: Rhydon
Source File: SAV_Inventory.cs
private void populateList(ItemList il)
        {
            dataGridView1.Rows.Clear();
           /n ..... /n //View Source file for more details /n }

2. Example

Project: xenadmin
Source File: SelectMultipleVMNetworkPage.cs
protected DataGridViewComboBoxCell FillGridComboBox(object xenRef)
		{
		    var cb = new DataGridViewComboBoxCell {FlatStyle = FlatStyle.Flat, Sorted = true};

			XenRef<Host> hostRef = xenRef as XenRef<Host>;
			Host host = TargetConnection.Resolve(hostRef);

            var availableNetworks = TargetConnection.Cache.Networks.Where(net => ShowNetwork(host, net));

			foreach (XenAPI.Network netWork in availableNetworks)
			{
				if (!Messages.IMPORT_SELECT_NETWORK_PAGE_NETWORK_FILTER.Contains(netWork.Name()))
				{
					var wrapperItem = new ToStringWrapper<XenAPI.Network>(netWork, netWork.Name());

					if (!cb.Items.Contains(wrapperItem))
						cb.Items.Add(wrapperItem);
				}
			}

			return cb;
		}

3. Example

Project: My-FyiReporting
Source File: DataSetsCtl.cs
private void bRefresh_Click(object sender, System.EventArgs e)
        {
            // Need to clear all the fields and then replace with the columns 
            //   of the SQL statement

            List<SqlColumn> cols = DesignerUtility.GetSqlColumns(_Draw, cbDataSource.Text, tbSQL.Text, _dsv.QueryParameters);
            if (cols == null || cols.Count <= 0)
                return;				// something didn't work right
			
            _dsv.Fields.Rows.Clear();
            string[] rowValues = new string[4];
            foreach (SqlColumn sc in cols)
            {
                rowValues[0] = sc.Name;
                rowValues[1] = sc.Name;
                rowValues[2] = "";
                DataGridViewComboBoxColumn TypeColumn = (dgFields.Columns[3] as DataGridViewComboBoxColumn);
                if (!TypeColumn.Items.Contains(sc.DataType.FullName))
                {
                    TypeColumn.Items.Add(sc.DataType.FullName);
                }
                rowValues[3] = sc.DataType.FullName;
                _dsv.Fields.Rows.Add(rowValues);
            }
        }