Hi, We are interested to use nested properties or Sub properties to the grid columns
if we have following structure then how can i bind column of with a Abc propert through Class1 while I am using List<class1> as ItemSource.class class1{ public string A {get; set;} public Class2 B {get; set;}}
class class2{ public string Abc {get; set;}}
Xam Grid as: <ig:XamGrid Name="gd"> <ig:TextColumn Key="A"> </ig:TextColumn> <ig:TextColumn Key="B.Abc"> </ig:TextColumn>
....
Can you help use to find how to do this in XamGrid?
Thanks
The XamGrid allows you to use that type of notation, but you would probably need to make your classes public.
Hi, sorry the was an typo in sample code for the forum. these classes are public in actual, but I am not able to get something like
<ig:TextColumn Key="B.Abc"></ig:TextColumn>
it gives runtime exception, unable to reolve B.Abc
Is the object in "B" null? Are you sure it's there?
I am attaching the sample I created to make the code. Please modify it to show your error.