We are using a DataBoundGrid to display data. The grid has a Sevirity field which can have values 1,2,3. I am trying for a way to display Icons each representing this Sevirity value instead of 1,2 and 3 or strings like "High", "Medium" and "Low". Is there any way by which I can keep the column values as 1,2 and 3 and display Icons instead of these values getting displayed.
Thanks in advance,
ADAdministrator Syncfusion Team August 10, 2004 03:28 PM
1) Create an ImageList that holds your icons and set the ImageList as the style.ImageList property for the column.
this.gridDataBoundGrid1.Binder.InternalColumns.StyleInfo.ImageList = imageList;
2) Then handle PrepareViewStyleInfo, and there move the style.CellValue to the styleImageIndex property and set teh style.Text to "".