AD
Administrator
Syncfusion Team
March 11, 2003 06:35 AM UTC
Add an ImageList to your project holding the three icons. Then handle the PrepareViewStyleInfo event. In that event, if e.RowIndex > 0 and e.ColIndex is 1 (the col where you want the icon), then set e.Style.ImageList to be your imagelist, and e.Style.ImageIndex to be the index of the icon you want to use for the given row, e.RowIndex. If you need to test values from columns other than e.ColIndex, you can get them by using indexers on the GridDataBoundGrid. If you need to know the value of the e.ColIndex cell, then get it from the e.Style.CellValue.