How to set image background for button column of radgridview?

3 posts, 0 answers
  1. Truong
    Truong avatar
    2 posts
    Member since:
    May 2012

    Posted 17 Mar 2013 Link to this post

    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:
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 18 Mar 2013 Link to this post


    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

  3. Stefan
    Stefan avatar
    2911 posts

    Posted 20 Mar 2013 Link to this post

    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,
    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Back to Top