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
930
Creating a data schema in run-time
posted

Hi,

I currently use a manually defined schema to restrict which columns to display from a datatable datasource.

My question is, can I create this schema in run-time?

Basically, I have a requirement whereby users can only view certain columns. This means I need a way to restrict certain columns dynamically.

If this can't be done via a schema, is there another way?

Thanks

Ryan

 

 

Parents
No Data
Reply
  • 37774
    Verified Answer
    posted

    Ryan,

    If you need to create a schema at run-time, then another approach that might suit you better is to simply handle the InitializeLayout event of the grid and hide any columns that don't appear in your schema, through the Hidden property on a column object.

    -Matt

Children
No Data