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
2690
Checkbox as unbound column
posted

How can i have checkbox as unbound column

The checkbox checked/unchecked depends upong other db column value(can this  be done using valueconverter?)

  • 40030
    Offline posted

    Hi, 

    First set a ValueConverter on the UnboundColumn that calculates a bool value. Then in the ItemTemplate of the column set the  checkbox's IsChecked property with a binding to a property called value, which is part of the DataContext of the DataTemplate:

    <CheckBox IsChecked="{Binding Value}"/>

    And that would be all you'd really need to do. 

    Here's a link to a help topic that explains everything you need to know about the UnboundColumn:

    http://help.infragistics.com/NetAdvantage/Silverlight/2010.3/CLR4.0/?page=xamGrid_Unbound_Column.html

    Hope this helps,

    -SteveZ