row header''s icon on griddataboundgrid

Hi there, How do I change the row header''s icon displayed on the griddataboundgrid ? thx, adit

1 Reply

AD Administrator Syncfusion Team July 21, 2005 12:28 AM UTC

Here is one way you can do this. http://www.syncfusion.com/support/user/uploads/7954.zip. It changes the row header cell style to "Header" to avoid seeing the default pencil and triangle, and then uses PrepareViewStyleInfo to show an icon using style.ImageList to provide a BackgroundImage for the header cells. The sample gets the image index from a column in the datatable being displayed. Another way you can do this is to handle the CellDrawn event and draw the bitmap over the cell at that point when e.ColIndex == 0 and e.RowIndex > 0.

Loader.
Up arrow icon