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
550
Hide a column in XAMGrid
posted

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.

Parents
No Data
Reply
  • 6475
    posted

    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

Children