I am a beginner in programming. I want to manage my Checkbox by including "if-else-condition" in it. For examples, there are two columns in my grid which are named "readable" and "writable" (public bool). I will use CheckBox for these two columns.
1) the CheckBox will be "read-only", if the value of readable/writable is false.
2) the CheckBox are editable by the user, if the value of readable/writable is true.
For example, how can I edit from the code below? (assuming that I have done my data-binding)
<sf:GridTreeColumn MappingName="Readable" PercentWidth="2">
<sf:GridTreeColumn.StyleInfo>
<sf:GridStyleInfo CellType="CheckBox" HorizontalAlignment="Center" IsThreeState="False"/>
</sf:GridTreeColumn.StyleInfo>
</sf:GridTreeColumn>
<sf:GridTreeColumn MappingName="Writable" PercentWidth="2">
<sf:GridTreeColumn.StyleInfo>
<sf:GridStyleInfo CellType="CheckBox" HorizontalAlignment="Center" IsThreeState="False"/>
</sf:GridTreeColumn.StyleInfo>
</sf:GridTreeColumn>
Sincere thanks to all who try to read my question and try to help me. =)