Hi, I have an ultragrid which is taking as a datasource at runtime an arraylist of given objects.
I'm not the creator of these objects. I am only interested in displaying a few of their properties, which will be a few columns in my grid.
I created bound columns in my ultragrid, but as soon as the datasource is given to the grid, all the fields naturally create new columns automatically.
How do I properly insure that ONLY those few properties I'm interested in actually generate columns?
I know I could always browse the gridcolumns after the datasource is given and hide the unnecessary columns, but it doesn't seem clean at all. Can you give me the proper way to achieve this end?
Thanks.
HOWTO:How can I define columns in the grid at Design-time and bind them at run-time so that some fields of the data are excluded from the grid?
I´ve done al that it is said at the link you provided, but im stuck figuring out hoy to show unhidden columns.
I have a list with objects with 6 properties and i´m hidding 4 but just one is show that is a small text and the one that is not shown is a larger text phrases.
Tried defining at SetDataBinding the hiddenNewColumn parameter to false and all columns are shown with its data OK, so it is not a Binding to DataSource problem but i guess is a hiddenColumns mapping parameter issue.
Appreciate any help, its really frustating...