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
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