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

[Solved] Create GridViewImageColumn in c# not xaml

0 Answers 113 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.
Patrick
Top achievements
Rank 1
Patrick asked on 03 Nov 2011, 03:02 PM
I need to build my grid at runtime, on the client "based on" data returned from my WCF service.

My perfect solution would be as follows...

      Telerik.Windows.Controls.GridViewImageColumn col = new Telerik.Windows.Controls.GridViewImageColumn();

      col.blah = blah;     // Set up the column name, header, width, height, not resizeable, not movable etc.
      col.ImageSource = "NameOfImageFileIncludedInProject.PNG"       <--- This is something like what I'm looking to be able to do

      myGrid.Columns.Add(col);

Can anyone help?
Tags
GridView
Asked by
Patrick
Top achievements
Rank 1
Share this question
or