Rank: Member Groups: Member
Joined: 11/29/2007 Posts: 25
|
Is it possible to create grid columns at runtime? The databind method does not seem to generate columns off the datasource, or am I doing something wrong?
I am not able to instantiate a GridColumn object to add this to the Columns collection.
Any Suggestions?
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
You can. But you can not instatiate the abstract GridColumn, you will need to instatiate a specific type of grid column, for example, "ButtonColumn", "DateTimeColumn", etc. After all you have to decide which type of column you are going to use before you jump.
|
Rank: Member Groups: Member
Joined: 11/29/2007 Posts: 25
|
I should have realized that. Perhaps you could comment on the first part of the question - i.e getting the grid to generate columns off the datasource. I notice that there is a "autogeneratecolumns" property that seems to have no effect.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
No. That's not supported it. Hopefully we can support it soon.
|