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

can i load image in GridViewDatacolumn,if so how it is possible?

1 Answer 122 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ravi Prakash
Top achievements
Rank 1
Ravi Prakash asked on 01 Apr 2010, 11:57 AM
Dear friends,
I got into chaos whenever i need to put an image in a row(GridViewDatacolumn is the type of the column for that row).

can i load an image..with out using GridViewImageColumn.

Plz reply me asap.

my code is...
----------------------
GridViewDataColumn d1 = new GridViewDataColumn("un", "j");
              radGridView1.Columns.Add(d1);
 Image  _image = application.Properties.Resources.open_file;

 radGridView1.Rows.Add(_image );
  radGridView1.Rows.Add("This");
-----------------
but i am getting image as System.Drawing.image just text not an image..

Thanks,
Regards,
Ravi

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 07 Apr 2010, 09:33 AM
Hello Ravi Prakash,

You must use the GridViewImageColumn which supports this functionality. Please avoid using the GridViewDataColumn in your business logic. This column also does not work properly with RadGridView editors. The GridViewDataColumn is a base column for all rendered data columns. In the next edition of RadGridView this will be changed to an abstract class. 

All the best,
Julian Benkov
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
Ravi Prakash
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or