Hi,
I want to disable the XamDataGrid Row based on DataItem's Property Value.That Property Values is
editable.The user can change that value.Depending the User entered value i need to disable.
Please advice me on this.
Ramesh Babu.
Hello,
Yes, this works in case that your DataItem property is of type boolean. Furthermore, you can do the same with a property that is not boolean, for example, double, but use also a Converter class, which implements IValueConverter and returns boolean value, depending on the double value.
For example -- true if value < 50, and false if value > 50.
Alex.
Hello Alex,
Thanks for your reply.I have accomplished in the following way.
<
Style TargetType="{x:Type igDP:DataRecordPresenter}" BasedOn="{x:Static igThemes:DataPresenterAero
.DataRecordPresenter}">
}"/>
Thanks
Hello Ramesh,
You can use RecordUpdated event to check the value in the DataItem property and disable the record or EditModeEnded of a cell, depending on when you want to make the record read only.