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
Checkbox Enabled depending on value of another column

Hi, this is a simple question but I am having trouble doing this:

I have a xamdatagrid which is bound to a datasource in the codebehind.

the grid has three columns. one is a boolean, one is a string and one is an integer.

if the integer column contains a number greater than 5 then I want the boolean column (which is displayed as a checkbox) to be disabled. If the integer column is less than 5 than the boolean column should be enabled (i.e. I can check or uncheck it).