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
1510
Databinding on a certain UltraGrid column for disable/enable checkBox clicking
posted

Hi there,

Can you tell me how I can databind against a certain checkBox inside the UltraGrid ?
I have the column databound against a certain managed property ( CSLA ) to get if the column/field should be checked or not checked, that's no problem ... but then I have an additional property in the class which is databound to the Grid which says if the user is ABLE to check the box or not

The property is called CanCloseProject ... which is true or false, and set on each row ... and if the property is false, the user should not be able to check the box ( the control ). How can I databind that in the IDE designer ? e.g. I want to databind against the controls DISABLED property, with this CanCloseProject field in my CSLA class, so the control is disabled if CanCloseProject  is False.-

rgd,
EE.

  • 469350
    Verified Answer
    Offline posted

    Hi,

    There's no way to bind the enabled state of the cell. But you can code this very easily. What you do is handle the grid's InitializeRow event. In this event, you can examine the value of the CanCloseProject field and then set the Activation property on the CheckBox cell in the same row accordingly.