Hi i am designing a control in which i am using XAMGrid. i am binding this grid with a observable collection. now i want to hide some specific columns from this grid. how do i do that. Like i need to hide columns whose name starts with "Old"
i need to do it in code behind as i am not defining columns in xaml. these colums may change depending on the data in the OC.
Hi,
you could add the AutoGenerateField attribute to the properties of your data object that you don't want to have columns for:
[Display(AutoGenerateField=false)]
public string OldStringProperty {get;set;}
Hope this helps
attribute doesnt seem to work
I attached a small sample that works for me. Could you try it and see if it works on your end ?
If it's not working for you, could you provide the specific version / build number you are using ?
Regards,