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

Unable to see Image on Button

1 Answer 49 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 28 Jul 2010, 10:43 AM
I'm have datagrid under which I need  one column  which will show image button which ofcourse will be seen to all rows. So coded something like below.

 

 

 

<sdk:DataGrid.Columns>

 

 

 

 

<sdk:DataGridTemplateColumn Width="Auto" Header="XYZ">

 

 

 

 

<sdk:DataGridTemplateColumn.CellTemplate>

 

 

 

 

<DataTemplate>

 

 

 

 

 <Button x:Name="btnpqr" HorizontalAlignment="Center" VerticalAlignment="Center" Height="20" Width="20" >

 

 

 

 

<Image x:Name="12345" HorizontalAlignment="Center" Source="\Images\ABC.jpg" Margin="1,0,1,0" VerticalAlignment="Center" />

 

 

 

 

 </Button>

 

 

 

 

</DataTemplate>

 

 

 

 

</sdk:DataGridTemplateColumn.CellTemplate>

 

 

 

 

</sdk:DataGridTemplateColumn>

 

</sdk:DataGrid.Columns>

But somehow image is not appearing  on button.

Can you help

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 28 Jul 2010, 12:22 PM
Hello,

I'm not sure how this XAML is related to RadGridView. Can you clarify?

Greetings,
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
Tags
GridView
Asked by
Thomas
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or