Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
100
Checkbox in LabelPresenter.
posted

Hi there. I need some help please.

I add a unbound field to my grid to allow the user to enable/disable an option. I want to add a checkbox to the label and when the user checks/unchecks that checkbox I want to check or uncheck all the rows in the grid.

Can you please help me?

 In code I add the selecor field to the grid:

        Dim SelectorField As New UnboundField
        SelectorField.DataType = GetType(Boolean)
        SelectorField.Column = 0
        SelectorField.Settings.LabelWidth = 20
        SelectorField.Settings.CellWidth = 20
        SelectorField.Settings.AllowEdit = True
        pLayout.Fields.Add(SelectorField)

 

Thanks.