后台设置Gridpanel的RowSelectModel

来源:互联网 发布:lol小米淘宝店 编辑:程序博客网 时间:2024/05/16 01:14
  //如果flag="0"就表示人员列表是单选,否则为多选
                    if (flag == "0")
                    {
                        RowSelectionModel sm = this.DetailGridPanel.SelectionModel.Primary as RowSelectionModel;
                        RowSelectionModel ss = new RowSelectionModel();
                        ss.ID = "RowSelect";
                        this.DetailGridPanel.SelectionModel.Remove(sm);
                        this.DetailGridPanel.SelectionModel.Add(ss);
                    }
原创粉丝点击