Thanks Nadya,
It works fine now.
Hello Betsy,
ShouldCheckDataRows property is public property, but it is not browsable. Could you please type it instead of choosing it by the intellisense functionality. It was introduced many years ago so it should be accessible with the latest versions only when typing it.
Let me know if you need further assistance.
Regards,
Nadya
Progress Telerik
Hi Nadya,
Thanks for the reply.
I cannot find the "ShouldCheckDataRows" property on the GridViewCheckBoxColumn.
I tried using "Telerik UI for WinForms R1 2019" version and "Telerik UI for WinForms R2 2020" version.
Please refer the attached screenshot.
Kindly let me know which version shall I use?
Hello Betsy,
To workaround this please refer to the following code snippet:
Public Class RadForm1
Public Sub New()
InitializeComponent()
Me.RadGridView1.EnableFiltering = True
Me.RadGridView1.EnablePaging = True
Me.RadGridView1.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill
Dim checkBoxColumn As GridViewCheckBoxColumn = New GridViewCheckBoxColumn()
checkBoxColumn.HeaderText = "CheckBoxColumn"
checkBoxColumn.CheckFilteredRows = False
checkBoxColumn.EnableHeaderCheckBox = True
checkBoxColumn.ShouldCheckDataRows = False
RadGridView1.MasterTemplate.Columns.Insert(0, checkBoxColumn)
AddHandler Me.RadGridView1.HeaderCellToggleStateChanged, AddressOf Me.RadGridView1_HeaderCellToggleStateChanged
End Sub
Private Sub RadGridView1_HeaderCellToggleStateChanged(ByVal sender As Object, ByVal e As GridViewHeaderCellEventArgs)
Dim dataView As Telerik.WinControls.UI.GridDataView = TryCast(Me.RadGridView1.MasterTemplate.DataView, GridDataView)
For Each row As GridViewRowInfo In dataView.Indexer.Items
row.Cells(0).Value = Convert.ToBoolean(e.State)
Next
End Sub
End ClassI hope this helps.
Regards,
Nadya
Progress Telerik