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

[Solved] Cannot see controls added to GridView

2 Answers 89 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.
Louis
Top achievements
Rank 1
Louis asked on 08 Feb 2011, 05:15 PM
I've added a couple of controls to a Silverlight GridView control using code similar as follows:

 <telerik:GridViewDataColumn>

 

    

<telerik:GridViewDataColumn.CellEditTemplate>

 

         

<DataTemplate>

 

             

<telerik:RadButton x:Name="btnAddToCart" Content="Add To Cart" />

 

         

</DataTemplate>

 

     

</telerik:GridViewDataColumn.CellEditTemplate>

 

 

</telerik:GridViewDataColumn>

However, when running the project in debug mode I cannot see any of these controls until I double click on the grid row itself.  Looking at the examples provided, it appears I'm settting everything correctly.  So the question is what does it take to display controls added to a grid when the grid is populated with data?

2 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 08 Feb 2011, 05:17 PM
Hi,

 Are you looking for CellTemplate instead? CellEditTemplate will be loaded when the cell is in edit mode only. 

Regards,
Vlad
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Louis
Top achievements
Rank 1
answered on 08 Feb 2011, 05:19 PM
It's always the simple things..  Thanks
Tags
GridView
Asked by
Louis
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Louis
Top achievements
Rank 1
Share this question
or