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

Bind to array of arrays

6 Answers 186 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Craig
Top achievements
Rank 1
Craig asked on 20 Oct 2010, 01:12 AM
Hi,

Is it possible to bind to an array of arrays?

We need to bind to some dynamic data, so we cannot pre-generate classes for the data items.


Craig

6 Answers, 1 is accepted

Sort by
0
Simon
Top achievements
Rank 1
answered on 21 Oct 2010, 08:22 AM
As stated in my recent post, I have the same need: please could someone help about this?
0
Accepted
Vanya Pavlova
Telerik team
answered on 22 Oct 2010, 11:23 AM
Hello Craig,

I have prepared an example for you that demonstrates how use jagged array as a data source in RadGridView and how to create its columns dynamically.

Please see the attached and let me know if this works for you..

Sincerely yours,
Vanya Pavlova
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Craig
Top achievements
Rank 1
answered on 25 Oct 2010, 09:42 PM
Thanks Vanya,

That worked nicely.


Craig
0
Donald Hylton
Top achievements
Rank 1
answered on 15 Nov 2010, 10:01 PM
I have a question about extending this dynamic column generation.

I want to apply different converters on the columns of data. For most of the columns I want to translate a property into an image. For another column ( which is known before hand), I want to color the text based on a property. I have the dynamic column generation working. However, I could use some guidance on the converter.

Thanks Donald
0
Vanya Pavlova
Telerik team
answered on 18 Nov 2010, 08:20 AM
Hi Donald,



I have prepared an example for you that demonstrates these techniques in case of dynamic columns.
If you want change the foreground, background or any other properties you can also use Conditional Styles And Templates RadGridView-WPF/SL.


Please see the attached example, review the blog post and if you need any further assistance let me know.


Best wishes,
Vanya Pavlova
the Telerik team
See What's New in RadControls for WPF in Q3 2010 on Tuesday, November 16, 2010 11:00 AM - 12:00 PM EST or 10:00 PM - 11:00 PM EST: Register here>>
0
Kristjan Einarsson
Top achievements
Rank 1
answered on 08 Mar 2012, 04:51 PM
Hi, I have one question about this.
What if you want to have the first column as string the rest as int ?

best regards
Tags
GridView
Asked by
Craig
Top achievements
Rank 1
Answers by
Simon
Top achievements
Rank 1
Vanya Pavlova
Telerik team
Craig
Top achievements
Rank 1
Donald Hylton
Top achievements
Rank 1
Kristjan Einarsson
Top achievements
Rank 1
Share this question
or