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

Custom row layout not binding!

4 Answers 63 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Brandon
Top achievements
Rank 1
Brandon asked on 18 May 2011, 04:56 PM
Hey I followed your example for customizing the row layout.
The custom row now shows but it's not showing the binding data and if I remove the RowStyle="{StaticResource rowStyle}" parameter and display the GridViewDataColumns with the bindings, the data then displays.

Can you help?

4 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 18 May 2011, 05:01 PM
Hello Brandon,

 
Can you verify that your custom row style follows the approach demonstrated in our online demo?


Kind regards,
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
Brandon
Top achievements
Rank 1
answered on 18 May 2011, 08:04 PM
Yes I am following that exact template.
I'm using the template created in that example to display contact info.
I'm also binding to the grid from a DataTable in the codebehind.
0
Accepted
Vlad
Telerik team
answered on 19 May 2011, 06:52 AM
Hi,

 Bindings can access DataTable fields only with square brackets. You can use the table DefaultView instead or modify your bindings. 

Regards,
Vlad
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
Brandon
Top achievements
Rank 1
answered on 19 May 2011, 03:01 PM
The DefaultView worked like a charm.
Thanks!
Tags
GridView
Asked by
Brandon
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Brandon
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or