Created a column like this:
if (operation == "viplata")
{
GridViewCheckBoxColumn checkBoxColumn = new GridViewCheckBoxColumn
{
DataType = typeof(bool),
Name = "Выбрать",
FieldName = "Выбрать",
HeaderText = "Выбрать",
EditMode = EditMode.OnValueChange,
ReadOnly = false
};
checkBoxColumn.EnableHeaderCheckBox = true;
radGridView1.MasterTemplate.Columns.Add(checkBoxColumn);
}
The column is shown, but nothing can be selected. I have an event connected to DataGridView1_DoubleClick, so the checkboxes must be set by one click. How can I implement it?
I have grouping enabled in my grid.How can I make it so that when I press a key, only open checkBoxColumn groups are selected?Thanks for your help.
Thank you for the shared code snippet. In general, the EditMode property determines when the new value in the check box cell will be submitted. Setting the EditMode to OnValueChange as in the code snippet, clicking on the checkbox will automatically change the value in the data source object. The purpose of the GridViewCheckBoxColumn is to be bound to a boolean property inside your data source object.
As for your second question, I will need more information regarding your requirements. Can you share images of what you have and what you want to happen when RadGridView is grouped? This way I could think for a way to achieve your requirement.