This is a migrated thread and some comments may be shown as answers.

Checkbox Column RadGridView UI Winforms

4 Answers 1748 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Donovan Kruger
Top achievements
Rank 1
Donovan Kruger asked on 29 Aug 2019, 07:50 AM

I have  abound gridview that i have added a checkbox column to as the first column.
i cannot check any checkboxes in any row, only able to check the headercheckbox which selects all checkboxes of every row.

Dim checkboxcolumn As New GridViewCheckBoxColumn
checkboxcolumn.DataType = GetType(Integer)
checkboxcolumn.Name = "SelectedColumn"
checkboxcolumn.FieldName = "Select"
checkboxcolumn.HeaderText = "Select?"
GV_Assets.MasterTemplate.Columns.Add(checkboxcolumn)
checkboxcolumn.EnableHeaderCheckBox = True

 

4 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 29 Aug 2019, 01:27 PM
Hello, Donovan,  

The GridViewCheckBoxColumn.EditMode property controls when the value of the editor will be submitted to the cell. By default, (OnValidate), the value will be submitted only when the current cell changes or the grid looses focus. The other value, (OnValueChange), will submit the value immediately after the editor value changes. I would recommend you to set the EditMode property to OnValueChange. Thus, the cell's value will be toggled as soon as you check/uncheck the RadCheckBoxElement.

I have attached a sample project for your reference. Could you please give a try and see how it works on your end?

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Soroush
Top achievements
Rank 1
answered on 07 Sep 2019, 01:52 PM

Dear Dess

Would you please send the same project but in C# language? I am not able open VB projects at the moment.

It is much appreciated.

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 09 Sep 2019, 08:11 AM

Hello, Soroush,    

Please find attached the C# project for the GridViewCheckBoxColumn.

I would like to note that we offer a free online code converter from C# to VB.NET and vice versa: http://converter.telerik.com/ Feel free to use it whenever you need to covert any piece of code.

I hope this information helps.

 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Julian
Top achievements
Rank 1
Iron
Iron
Iron
answered on 15 Aug 2024, 12:23 PM

Hi

I had the same issue.

Make sure that your Rows are Editable.

I had AllowEditRows on false and thus could not edit the checkbox.

Tags
GridView
Asked by
Donovan Kruger
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Soroush
Top achievements
Rank 1
Julian
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or