Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
96
How to show Hierarchical on XamDatagrid AutoGenerate set to false on Field settings
posted

Hi

I'am trying to show hierarchical data on the grid which is bounded to a Datasource.

I have a nested class, i have binded my datasource to a IList<Type>. If i set the AutoGenerate flag on the field setting to true, I get a herirachical grid structure for the Nested Class(The nested class have two properties which are of type bool and string. so what i'am trying to depict will look something attached one)  and the rest of the class  properties are shown as fields. But i have lot of properties which shouldn't be visible.

 

 

so when i try to generate the hierarchical structure for the nested class with AutoGenerate flag sete to flase, it doesn't work.

The nested class have two properties which are of type bool and string. so what i'am trying to depict will look something attached one. The nested class list is exposed in as IList<typeNestedClass>. I'm trying to bind the nested Class List to field.

 <igDP:FieldLayout.Fields >

 

 

 

 

<igDP:Field Name="ValueList" Label

="ValueList" />

 

 

 

</igDP:FieldLayout.Fields>

 IList<ValueClass> mandateValueList = new List<ValueClass>();

 

public IList<ValueClass> ValueList

{

get

 

 

 

   { 

  return valueList;        }

 

 

set

        {      valueList =

value;

             OnPropertyChanged(

"ValueList");

           }

 }

Is it possible to set Binding of fields like this?

Should I add one more field layout and try to bind the list?

How can i bind specify a hierarchical structure for a particular field?

Thanks and Regards

VTagore.