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

RadGridView - Image in a cell

1 Answer 193 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Andy
Top achievements
Rank 1
Andy asked on 03 Jul 2009, 03:27 PM
Hi Guys

I am very new to this WPF and Telerik. what i need is a very simple example of now get images to display in my grid. This my XAML code

<telerik:RadGridView Name="RadGridView1" Width="200" AutoGenerateColumns="False" >

 

 

<telerik:RadGridView.Columns>

 

 

 

 

<telerik:GridViewDataColumn DataType="Image" IsSortable="False" IsFilterable="False" UniqueName="ImageFile" HeaderText="Picture" Width="60" />

 

 

 

 

<telerik:GridViewDataColumn UniqueName="ShortName" HeaderText="Name" />

 

 

 

 

</telerik:RadGridView.Columns>

 

 

 

 

</telerik:RadGridView>

 

 

 

Then at runtime i bind to the grid with the following code

 

 

 


Dim Teammembers As IntyLibrary.TeammemberCollection = IntyLibrary.TeammemberCollection.GetTeamMembers

 

 

 

RadGridView1.ItemsSource = TeamMembers

I get all the data fine in the grid but i get the path name of the images, i need the grid to display the image.

 

 

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 06 Jul 2009, 05:42 AM
Hi Andy,

Please check "Columns / Template And Unbound" in our online examples for more info. For images from data-base (byte[]) you can check "Scroll Modes" demo.

Best wishes,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Andy
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or