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

SubObject binding question

1 Answer 38 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 29 Aug 2008, 06:53 PM
Hi,

I guess I have some understanding issue concerning the RadGrids SubObject databinding. I have bound a RadGrid to a LinqDataSource which works perfectly out of the box. One of the object members is a relationship which is represented by a foreign key on the db. Now I want to bind the corresponding colum of the RadGrid to the "Name" field of the object which is referenced via the relationship.
If I understand the documentation correctly, I have to do this via the GridBoundColumn's DataField attribute. There I put "Product.ProductName" but the column remains empty.

What could be my mistake?

Best regards,
Robert

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 01 Sep 2008, 01:55 PM
Hello Robert,

I have attached small example to illustrate you how to achieve this.

Regards,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Robert
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or