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

How to set image background for button column of radgridview?

2 Answers 336 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Truong
Top achievements
Rank 1
Truong asked on 18 Mar 2013, 02:57 AM
Dear all, Telerik members.
I have question for telerik radgirdview.
I has a combobox column in radgirdview. How I can set background image for this button foreach record.
See attached file below:
http://img849.imageshack.us/img849/550/equipment.gif
Mr.Het

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 18 Mar 2013, 07:16 AM
Hi,

I suppose you want to add a background image for GridViewCommandColumn. You can try the approach mentioned in the following forum thread to add an image for GridViewCommandColumn.
Adding a Button Column with a image on it

Thanks,
Shinu
0
Stefan
Telerik team
answered on 20 Mar 2013, 01:29 PM
Hi guys,

Alternatively, you can introduce the image setting to the column itself and the image will be applied to all buttons in the column:
((GridViewCommandColumn)radGridView1.Columns["CommandColumn"]).Image = Resources.folder_open;
((GridViewCommandColumn)radGridView1.Columns["CommandColumn"]).ImageAlignment = ContentAlignment.MiddleCenter;

I hope this helps.

 

All the best,
Stefan
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Tags
GridView
Asked by
Truong
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Stefan
Telerik team
Share this question
or