This question is locked. New answers and comments are not allowed.
Hi, I'm trying to achieve something like this:
Show a grid with dynamic columns based on the values of objects displayed in the grid.
For instance, my object has 4 properties: Prop1 to Prop 4.
I have a textbox to search into my objects for specific types of objects. Let's say I have 3 types of objects which will have some of the "PropX" properties set to NULL as follow:
Type 1 object
Prop1 has values
Prop2 has values
Prop3 Is always null
Prop4 Is always null
Type 2 object
Prop1 Is always null
Prop2 Is always null
Prop3 has values
Prop4 has values
Type 3 object
Prop1 Is always null
Prop2 has values
Prop3 has values
Prop4 Is always null
What I want to achieve is when I output my grid, only the columns bound on properties that has values will be visible.
Is it possible?
Thanks!
Show a grid with dynamic columns based on the values of objects displayed in the grid.
For instance, my object has 4 properties: Prop1 to Prop 4.
I have a textbox to search into my objects for specific types of objects. Let's say I have 3 types of objects which will have some of the "PropX" properties set to NULL as follow:
Type 1 object
Prop1 has values
Prop2 has values
Prop3 Is always null
Prop4 Is always null
Type 2 object
Prop1 Is always null
Prop2 Is always null
Prop3 has values
Prop4 has values
Type 3 object
Prop1 Is always null
Prop2 has values
Prop3 has values
Prop4 Is always null
What I want to achieve is when I output my grid, only the columns bound on properties that has values will be visible.
Is it possible?
Thanks!