I am having problems with the Bindings in XamDataGrid. I have an MVVM application where the Model uses a DynamicBindingProxy to bind the properties of the datacontract. This works fine with normal bindings. Using XamDataGrid i get no data at all. Also when i try to access the properties which are in the stores in DataInstance in the model i get no result. It seems to me as if when i use a "." in the Name Property of the Field Tag it does not work:
Does not Work:
<igDP:XamDataGrid.FieldLayouts> <igDP:FieldLayout> <igDP:Field Label="Login" Name="DataInstance.Login"/> </igDP:FieldLayout>
Works:
(
with an additional <igDP:XamDataGrid.FieldLayouts> <igDP:FieldLayout> <igDP:Field Label="Login" Name="Login"/> </igDP:FieldLayout>
<igDP:XamDataGrid.FieldLayouts> <igDP:FieldLayout> <igDP:Field Label="Login" Name="Login"/> </igDP:FieldLayout>
public string Login { get { return DataInstance.Login; } set { DataInstance.Login = value; } }
in the model
)
Hi Matt,
thanks for the info. You helped me a lot!
br,
Daniel.
HI ,
I am just following up on this thread.
Please let me know if you need further assistance regarding this issue.
Sincerely, Matt Developer Support Engineer
HI dclausen,
Here a help link to binding to complex properties.
http://help.infragistics.com/NetAdvantage/WPF/2011.2/CLR4.0/?page=xamDataPresenter_Displaying_a_Complex_Property_XAML.html
Sincerely, MattDeveloper Support Engineer