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
475
Disable CheckBox when other Value in row is double.NaN
posted

I have two properties in my viewmodel.

bool Adjust

double DesiredValue

In XamGrid I have this ColumnLayout:

 <ig:ColumnLayout Key="Values">

 <ig:ColumnLayout.Columns>

 <ig:CheckBoxColumn Key="Adjust" HeaderText="Adjust" EditorDisplayBehavior="Always" />

<ig:TextColumn Key="DesiredValue" HeaderText="Desired Value" />

</ig:ColumnLayout.Columns>

</ig:ColumnLayout>

How can I disable the checkbox for Adjust if DesiredValue is equal to double.NaN?

 

Parents
  • 14517
    Verified Answer
    Offline posted

    Hello Michael,

    You can create a style that targets CellControl and in this style use a converter to check the “DesiredValue”. If the value is double.NaN you can set’s the cells Enabled property to false.

    See attached sample.

    Sincerely,

    Valerie

    Developer Support Supervisor - XAML

    Infragistics

    www.infragistics.com/support

     

    WpfApplication1.zip
Reply Children
No Data