Attach Image with Coumn Text in MultiColumnComboBox

5 posts, 0 answers
  1. Muhammad
    Muhammad avatar
    10 posts
    Member since:
    Jun 2013

    Posted 22 Nov 2016 Link to this post

    Is there any way to attach a picture before text of any any column ?

    Regards

    MSA

  2. Dimitar
    Admin
    Dimitar avatar
    2831 posts

    Posted 22 Nov 2016 Link to this post

    Hi Muhammad,

    Thank you for writing.

    You can use the CellFormatting event to display an image in any grid cell:
    private void RadGridView1_CellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e)
    {
        e.CellElement.Image = img;
        e.CellElement.TextImageRelation = TextImageRelation.TextBeforeImage;
    }

    I hope this will be useful. 

    Regards,
    Dimitar
    Telerik by Progress
    Telerik UI for WinForms is ready for Visual Studio 2017 RC! Learn more.
  3. Muhammad
    Muhammad avatar
    10 posts
    Member since:
    Jun 2013

    Posted 22 Nov 2016 in reply to Dimitar Link to this post

    The image is appearing in every column, i want the image only in one column and it would be much better if no text will show with the text i want to replace the text with the image actually

     

    Regards

     

  4. Muhammad
    Muhammad avatar
    10 posts
    Member since:
    Jun 2013

    Posted 22 Nov 2016 in reply to Dimitar Link to this post

    Furthermore can you please guide if i would like to attach the image at the binding time if it possible to store an image instead of particular value in the grid at binding time. I am sure i am not bothering you 

    Thanks for you time and concern in advance 

    Regards

    MSA

     

  5. Dimitar
    Admin
    Dimitar avatar
    2831 posts

    Posted 23 Nov 2016 Link to this post

    Hi Muhammad,

    You can use GridViewImageColumn for this.

    I hope this will be useful. 

    Regards,
    Dimitar
    Telerik by Progress
    Telerik UI for WinForms is ready for Visual Studio 2017 RC! Learn more.
Back to Top