Beispiel #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            dropdownEdit1.IsExpandOnEdit     = chkIsExpandOnEdit.Checked;
            dropdownEdit1.IsApplyRowFilter   = chkIsApplyRowFilter.Checked;
            dropdownEdit1.IsAutoSelect       = chkIsAutoSelect.Checked;
            dropdownEdit1.IsHighlightKeyword = chkIsHighlightKeyword.Checked;

            int width = Convert.ToInt32(txtDropdownWidth.Text.Trim());

            dropdownEdit1.DropdownWidth = width;
            int height = Convert.ToInt32(txtDropdownHeight.Text.Trim());

            dropdownEdit1.DropdownHeight = height;

            foreach (DataColumn col in MockData.Columns)
            {
                cmbDisplayMember.Items.Add(col.ColumnName);
            }
            cmbDisplayMember.SelectedIndex = 0;

            dropdownEdit1.DisplayMember = cmbDisplayMember.Text;
            dropdownEdit1.DataSource    = MockData;
            dropdownEdit1.Focus();

            gridControl1.DataSource = MockData;
            repositoryItemDropdownEdit2.DataSource = MockData.Copy();
        }