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

Attach Image with Coumn Text in MultiColumnComboBox

4 Answers 92 Views
MultiColumn ComboBox
This is a migrated thread and some comments may be shown as answers.
Muhammad
Top achievements
Rank 1
Muhammad asked on 22 Nov 2016, 08:47 AM

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

Regards

MSA

4 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 22 Nov 2016, 11:10 AM
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.
0
Muhammad
Top achievements
Rank 1
answered on 22 Nov 2016, 02:25 PM

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

 

0
Muhammad
Top achievements
Rank 1
answered on 22 Nov 2016, 03:45 PM

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

 

0
Dimitar
Telerik team
answered on 23 Nov 2016, 09:28 AM
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.
Tags
MultiColumn ComboBox
Asked by
Muhammad
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Muhammad
Top achievements
Rank 1
Share this question
or