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

[Solved] bind array to grid column

1 Answer 177 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Praveen
Top achievements
Rank 1
Praveen asked on 08 Sep 2009, 07:44 PM
Hi,

I need help to bind array to a gridcolumn in Grid.

Eg

Product ID    Description     Decipher Info(array)

B234567     Serial                B- Area
                                            23- SubArea
                                            5- month
                                             6-Year
                                            7- Day

CDE78        Serial            C-Facility
                                        D- District
                                        E- Shift
                                        7 -Month
                                        8- Year

etc...

Length of Decipher Info will be different depending on length of Product Id. Datasource is object with Decipher Info as Oracle VARRAY.

Any help will be highly appreciated.


Thanks

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 11 Sep 2009, 11:10 AM
Hello Praveen,

I am attaching a sample project demonstrating one possible approach. Actually the GridBoundColumn allows binding to a single datafield only. That is why in my datacomponent I transform the array into a string representation that can then be bound to the column.

I hope this helps.

Best regards,
Martin
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Praveen
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or