Exemplo n.º 1
0
        private void FillColumnList(GridEXColumnCollection columns, ComboBox combo)
        {
            GridEXColumn column = null;
            int i = 0;

            //combo.DisplayMember = "_Name"
            combo.Items.Clear();
            combo.Items.Add(new object[] { "(None)", null });
            for (i = 0; i < columns.Count; i++)
            {
                column = columns[i];
                if (column.AllowSort)
                {
                    combo.Items.Add(new object[] { MainQD.GetColumnFriendlyName(column), column });
                }
            }
        }
Exemplo n.º 2
0
		private void FillVisibleList()
		{
			this.lbVisible.Items.Clear();
			if (mVisibleFields != null)
			{
				foreach (GridEXColumn column in mVisibleFields)
				{
					lbVisible.Items.Add(MainQD.GetColumnFriendlyName(column));
				}
			}
			if (lbVisible.Items.Count > 0)
			{
				lbVisible.SelectedIndex = 0;
				btnRemove.Enabled = true;
			}
			else
			{
				btnRemove.Enabled = false;
			}
		}