遗忘海岸

江湖程序员 -Feiph(LM战士)

导航

DevExpress 只允许修改指定列

            gridView1.OptionsBehavior.Editable = true;
            gridView1.OptionsBehavior.ReadOnly = false;
            foreach (GridColumn c in gridView1.Columns)
            {
                if (c.Name == colAmount.Name)
                {
                    c.OptionsColumn.ReadOnly = false;
                    c.OptionsColumn.AllowEdit = true;

                }
                else
                {
                    c.OptionsColumn.ReadOnly = true;
                    c.OptionsColumn.AllowEdit = false;
                }

            }
View Code

 

在GridControl控件中使用SearchLookUpEdit构建数据快速输入

posted on 2018-02-01 16:23  遗忘海岸  阅读(225)  评论(0编辑  收藏  举报