I want set a background property to a special color if a field value are True. I think my problem is in the Binding part. I have mark this part with ???. The Binding refers to DataRecordPresenter. I must have a binding to the actual DataItem (Field = Hide).
Can someone help me?
Hi Thomas,
The DataContext of a DataRecordPresenter is a DataRecord.
http://help.infragistics.com/NetAdvantage/WPF/2012.1/CLR4.0/?page=InfragisticsWPF4.DataPresenter.v12.1~Infragistics.Windows.DataPresenter.DataRecord_members.html
Every DataRecord has a DataItem property which is your background object. Assuming your background object has a property called "Hide" then your binding would look like this:
Binding="{Binding Path=DataItem.Hide}"
Let me know if you have any questions on this.
Many thanks, it's work fine.