winformsdata-binding.net-3.5bindingsource

Winforms DataBind to Control's Visible Property


Are there any known issues when databinding to a control's visible property?

The control is always NOT visible regardless of what my property is.

Public ReadOnly Property IsRibbonCategory() As Boolean
    Get
        Return True
    End Get
End Property

I tried the control's text property and other properties and they seem to work correctly.

I am trying to set a Panel's visible property.


Solution

  • Workaround: Set the Visible property on the BindingComplete event.

    I had same issue setting a label's Visible property - always stays false, even though setting the Enabled property works fine.