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
245
How to limit which columns in a datatable to display?
posted

 

I have a datatable with n columns. If I want to have the grid display all but two of these columns how do I do that ?

thanks...

 

Parents
No Data
Reply
  • 69686
    posted

    Hello,

    You can either set the AutoGenerateFields to false and declare the fields that you want to display or to hide them. For this, you can handle the FieldLayoutInitialized event of the XamDataGrid and set the Visibility of the Fields that you do not want to show up to Collapsed.

Children
No Data