Changing image at runtime in row header of Datagrid v 4.0.1.58

Hi
I am using DataGrid Control to diaplaye some data. I have to paint image on some of the rows of the Grid at Runtime on Rowheader. Now when user clicks on the Image on rowheader i have to change image at runtime.

To sum up:
I have to paint image on RowHeader of DataGrid rows.
I only have to paint image on some specific row headers based on some condition.
I should be able to handle click event on RowHeader only, the event should not be fired if user clicks on Row data.
On Click i should be able to change the image.

Thanks.
Abhi....

1 Reply

AD Administrator Syncfusion Team August 11, 2007 09:22 AM UTC

Here is a minimal sample that draws an icon in the header cell if the row contains a value greater than 5 in column Col1. It also displays a messagebox when you click the header.

http://www.syncfusion.com/Support/user/uploads/GDBG_RowHeaderClick_7752bc5e.zip


Loader.
Up arrow icon