[英]how can i uncheck DevExpress Gridview 's checkbox?
how can i uncheck DevExpress Gridview 's checkbox ? 如何取消选中DevExpress Gridview的复选框? i have a gridview with checkboxes.
我有一个带有复选框的gridview。 i need to uncheck all gridview Checkbox.
我需要取消选中所有gridview复选框。 How can i do that?
我怎样才能做到这一点?
You can use a list of object with a bool property to bind to the checkbox column. 您可以使用具有bool属性的对象列表来绑定到复选框列。
Column definition : this.gvCheck.ColumnEdit = this.repositoryItemCheckEdit1; 列定义:this.gvCheck.ColumnEdit = this.repositoryItemCheckEdit1; this.gvCheck.FieldName = " EstaSeleccionada ";
this.gvCheck.FieldName =“ EstaSeleccionada ”; this.gvCheck.Name = "gvCheck";
this.gvCheck.Name =“ gvCheck”; this.gvCheck.Visible = true;
this.gvCheck.Visible = true; this.gvCheck.VisibleIndex = 0;
this.gvCheck.VisibleIndex = 0; this.gvCheck.Width = 51;
this.gvCheck.Width = 51;
Property use: seniales.ForEach(s => s. EstaSeleccionada = true/false); 属性使用:seniales.ForEach(s => s。EstaSeleccionada = true / false); gcSeniales.DataSource = new List();
gcSeniales.DataSource = new List(); gcSeniales.DataSource = seniales;
gcSeniales.DataSource = seniales; gcSeniales.Update();
gcSeniales.Update();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.