Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

OBSOLETE: How to display an image in GridControl

$
0
0

Starting with version 13.2, GridControl supports displaying images in the Image column out-of-the-box. 


This example demonstrates how to use RepositoryItemPictureEdit to display an image in GridView. The same approach can be used for any View.

Refer to the How to force a GridView to display images against text in specified cells or columns KB article if you want to display both an image and text in a cell.

Question Comments

Added By: Adam Nowicki at: 7/13/2014 3:00:14 AM    

The solution works well. The problem is filtering through AutoFilterRow and sorting. In the column with image is written "No image data" and you can not use a filter. Please solution how applied in this case AutoFilterRow and sorting to this column.

Added By: Alexey Z (DevExpress Support) at: 7/14/2014 12:23:32 AM    Hello,

In order not to mix several questions within one thread, I will extract your question to a new ticket. Let us continue our discussion there How to use the AutoFilterRow feature with the column with PictureEdit as its in-place editor.Added By: Jim Buckley Barrett at: 10/28/2014 12:28:37 PM    

how would you set the size of the image in the grid without changing to layout view?

Added By: Alexey Z (DevExpress Support) at: 10/29/2014 12:59:31 AM    

Hello,

To process your recent post more efficiently, I created a separate ticket on your behalf: T166680: GrudControl - How to set the size of the image in the grid without changing to layout view. Let's continue our discussion there.

Added By: Stefan Kloss at: 4/22/2016 2:19:12 AM    Sorry, I do not understand, mabye I want something different.

It MUST be very easy. With a MS DataGridView it IS easy.

I want to DISPLAY not edit, not select or other, simply read only display of a programmatically chosen Image in one column, every Row/Cell has it's own image. What is to do?

In a DataGridView I use the CellFormatting - Event, check if the image Column is the current one, get the item bound to the Row, use the data to select an image and set the Cell-Value (e.Value = selectedImage).

What is it in a dx GridControl?
I cannot event change the column-Type to some kind of "Image"-Column.
how does that work at desgn time?

The column is unbound (and I'm not using a DataSource), I do not want to use ImageLists, ....
Your Example is incomplete.

Added By: Nadezhda (DevExpress Support) at: 4/22/2016 3:13:48 AM    

Hello,

I've created a separate ticket on your behalf (How to show image in an unbound column). It has been placed in our processing queue and will be answered shortly.


Viewing all articles
Browse latest Browse all 7205

Trending Articles