Example #1
0
        public ColumnChooserForm(String strTableName)
        {
            InitializeComponent();

            if (String.IsNullOrWhiteSpace(strTableName))
            {
                return;
            }

            foreach (String strColName in DataStructureProvider.GetAllTableColumns(strTableName).Keys)
            {
                ColumnListCtrl.Items.Add(strColName, CheckState.Unchecked);
            }

            ColumnListCtrl.ItemChecking  += new DevExpress.XtraEditors.Controls.ItemCheckingEventHandler(ColumnListCtrl_ItemChecking);
            chkAllColumns.CheckedChanged += new EventHandler(chkAllColumns_CheckedChanged);
        }