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.

Parents
  • 9694
    posted

    Did you want to know the best way to assign a checkbox to an unbound field or how to check/uncheck all the checkboxes in the grid when the user checks or unchecks one checkbox? Would this checkbox be in the header which would be a quick way to uncheck all the checkboxes in a column?

    Thanks,

Reply Children