示例#1
0
        private void btn_Query_Click(object sender, EventArgs e)
        {
            WaitingFrom.ShowWait("");
            DataTable dt = bll_wl.GetMatral(this.txt_Grd.Text, "1");

            this.gridControl1.DataSource = dt;
            this.gridView1.OptionsView.ColumnAutoWidth  = false;                                                                //不允许自动列宽
            this.gridView1.OptionsSelection.MultiSelect = true;                                                                 //允许多选
            gridView1.OptionsSelection.MultiSelectMode  = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CheckBoxRowSelect; //加载checkBox
            this.gridView1.BestFitColumns();
            SetGridViewRowNum.SetRowNum(gridView1);
            WaitingFrom.CloseWait();
        }