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
175
Selective Field auto generation for XAMData grid for hierarchical data
posted

Hi,

i have a hierarchical data with DATA Table at model along With Some other properties like 5 -6 ( in future there might be some more) , I Want a Field Layout where i can specify few field on GUI along with Data Table info ( i don't know the Columns of data table as it is dynamic , i just want to display It)

I don't want to change the XAMl all the time (to hide the Field whenever i introduce new one in Model ) as i am only interested in One Field  & Complete data Table which it contains.

Sample code Pasted Below to show the model below :

Class SampleViewModel

{

 private IEnumerable<InfoModel> Informations{get;set;} // This is the data source for XAMData grid

}

Class InfoModel{

//All properties here

String  StudentNAME, ( Need to be shown)

Datatable/DataView  BooksIssued; (  Need to be shown, I don't know the Column as its dynamic)

//Some more additonal fields which i dont want on GUI

int ID (Should not be displayed on GUI)

int Age(Should not be displayed on GUI)

}

Can some body help me writing Field Layout for this scenario as Autogeneration = true results in all Properties along with table on the GUI

Parents Reply Children