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?
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
Works like a charm. Thank you very much.