Home Forums WinForms controls Xceed Grid for WinForms Sorting Images Reply To: Sorting Images

User (Old forums)
Member
Post count: 23064

Look at the following http://doc.xceedsoft.com/products/XceedGrid/ComboBoxViewer.html from the online help documentation. It gives an example with the employee table of the Northwind DB, where it displayed an image and text in the same cell, and which is based on the ID of the employee.

ComboBoxViewer viewer = new ComboBoxViewer( dataSet11, “Employees”, “EmployeeID”, “Photo”, ImageArea.Left, new Size( 32, 32 ), “%FirstName% %LastName%” );

gridControl1.Columns[ “EmployeeID” ].CellViewerManager = viewer;
gridControl1.Columns[ “EmployeeID” ].Title = “Employee”;

Simply set the last two parameters to an empty string, and only on the image will be shown.

Imported from legacy forums. Posted by André (had 3756 views)