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
330
Binding to a DataSource and retrieving the custom attributes
posted

I'm developing much love for the UltraGrid.

This is maybe not-quite-an-infragistics-question...

We now have a lot of grids in our app, with the DataSource being an array of objects, each object exposing public properties.

However, not all the properties are required to be visible in the grid.

I've programatically hidden columns in the _InitializeLayout event.

But... I was wondering... in the ultimate of lazyness...

If in the class for the objects we're binding to... maybe I could put a custom attribute on above each exposed property, to specify if I want this column to be hidden in the output grid (should it ever be bound to an UltraGrid).

Then in the _InitializeLayout event, I could check cycle through all columns in all bands, and if this attribute existed a column, hide it.

 

Does my problem/question/issue/mindless-rant make sense?  Does anybody have any advice or ideas on this?

Parents
No Data
Reply Children
No Data