I have a class A that contains a Property class B:
Class B
{
pulic int Value1 {get;set}
pulic string Text1 {get;set}
}
Class A
public int ID {get;set}
pulic ClassB BObject {get;set}
pulic string Description {get;set}
I will not have Autocreation of fields so how do I have to set up the fields for Property BObject
<ig:Field Name="BObject.Value1" /> does not work.
Can anybody help on this?
Hello Michael,
Thank you for the provided feedback. If you need any further assistance on the matter please do not hesitate to ask.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Hello Krasimir,
many thanks to You. I found that way already.
Another solution to this would be if You autocreate fields and do not wanna change content to override the ToString Method of the encapsulated property class. This is only applicableif You hav't overwritten the class.
You can fill the tostring with the desired information
Best Regards
Michael
Hello,
I have been looking into the functionality that you are looking for and it can be achieved by using an UnboundField and setting the BindingPath property to the path that you wish ( for example BObject.Value1 ). I have created a sample application for you which demonstrates how you can achieve this functionality.
If you have any further questions please do not hesitate to ask.