how can i uncheck DevExpress Gridview ‘s checkbox ? i have a gridview with checkboxes. i need to uncheck all gridview Checkbox. How can i do that?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use a list of object with a bool property to bind to the checkbox column.
Column definition :
this.gvCheck.ColumnEdit = this.repositoryItemCheckEdit1;
this.gvCheck.FieldName = “EstaSeleccionada“;
this.gvCheck.Name = “gvCheck”;
this.gvCheck.Visible = true;
this.gvCheck.VisibleIndex = 0;
this.gvCheck.Width = 51;
Property use:
seniales.ForEach(s => s.EstaSeleccionada = true/false);
gcSeniales.DataSource = new List();
gcSeniales.DataSource = seniales;
gcSeniales.Update();