关于UltraWinGrid选中行只读设置

刚开始设置了 一些属性不起作用,后来检查下属性发现一旦对DataSource赋值 则属性会被重置

如果是通过绑定DataSet的方式 则需要再后面设置

this.dataGridView1.DisplayLayout.Bands[0].Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.RowSelect; ;
this.dataGridView1.DisplayLayout.Bands[0].Override.SelectTypeRow = Infragistics.Win.UltraWinGrid.SelectType.Single;
this.dataGridView1.DisplayLayout.Bands[0].Override.AllowUpdate = Infragistics.Win.DefaultableBoolean.False;

 

posted on 2017-12-05 11:40  沧海一声笑  阅读(210)  评论(0编辑  收藏  举报

导航