This is a migrated thread and some comments may be shown as answers.

[Solved] Dynamic properties

1 Answer 140 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jon Bergquist
Top achievements
Rank 1
Jon Bergquist asked on 06 Apr 2009, 09:32 PM
Hi is it possible to bind to dynamic properties?  I have a class that can have a variable amount of properties.  To be specific, I am dealing with "Slot" properties and depending on how many slots are available (Slot1, Slot2, ect) those should appear as columns.

Thanks

Jon

1 Answer, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 10 Apr 2009, 07:24 AM
Hi Jon Bergquist,

First of all, we apologize for the late reply.

Of course our RadGridView control supports auto generated columns. From your previous post  I suspect that you also want to apply custom style to every single cell. So, you can turn AutoGenerateColumns to true then hook on the RadGridView.DataLoaded event and change CellStyle property for every column.

As you are also interested in Dynamic Properties I'm attaching a modified version of this example that fits your scenario.

Best wishes,
Nedyalko Nikolov
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
Jon Bergquist
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Share this question
or