We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Changing image at runtime in row header of Datagrid v

Thread ID:





67227 Aug 10,2007 12:13 PM UTC Aug 11,2007 09:22 AM UTC WinForms 1
Tags: GridControl
Abhijeet Kumar
Asked On August 10, 2007 12:13 PM UTC

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.


Administrator [Syncfusion]
Replied On 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.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon