Hi,
I am using infragistics 9.2 and I want to put multiple images and texts in one cell like this :
How can I do this, perhaps using CreationFilter ??
Regards.
A CreationFilter would be one way to do this.
Another option would be to use formatted text. The UltraFormattedTextEditor control can do what you have shown here by embedding images in the text. If you want to try it and see what it looks like, put an UltraFormattedTextEditor on the form and go to the Value property. Clicking the ellipsis will take you to the formatted text editor where you can edit text just like a word processor. You can set up your text with the embedded images and then look at the Xml that was generated. That will give you an idea of how to build the strings you will need for the Value of your grid cells.
To get the grid to recognize the Xml, you just set the column.EditorComponent to an instance of the UltraFormattedTextEditor.
In fact, you don't even need the FormattedTextEditor, control, you can just set the Style of the column to FormattedText. Here's some sample code I threw together. I have a grid bound to an UltraDataSource with a single column and I am populate the value of that single column with Xml strings that contain embedded image data, which I generated from the images in an ImageList component.
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { UltraGridLayout layout = e.Layout; UltraGridBand band = layout.Bands[0]; UltraGridColumn column0 = band.Columns[0]; column0.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.FormattedText; } private void Form1_Load(object sender, EventArgs e) { StringBuilder sb = new StringBuilder(); string imageString = GetImageTag(this.imageList1.Images[0]); sb.Append(imageString); sb.Append("Title1"); imageString = GetImageTag(this.imageList1.Images[1]); sb.Append(imageString); sb.Append("Title2"); imageString = GetImageTag(this.imageList1.Images[2]); sb.Append(imageString); sb.Append("Title3"); this.ultraDataSource1.Rows.Add(new object[] {sb.ToString()}); } private static string GetImageTag(Image image) { return string.Format("<img style=\"width:{0}px; height:{1}px;\" data=\"{2}\"/>", image.Width, image.Height, Infragistics.Win.FormattedLinkLabel.FormattedLinkEditor.EncodeImage(image)); }