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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

identify click on rowheader

Thread ID:





56017 Feb 8,2007 01:41 PM UTC Feb 8,2007 05:00 PM UTC WinForms 1
Tags: Tools
Shachar Shimshon
Asked On February 8, 2007 01:41 PM UTC

hi all.
how can know if the user clicked on the row header, but not on the row itself(or cells in it)

Administrator [Syncfusion]
Replied On February 8, 2007 05:00 PM UTC

Hi Shachar,

You can handle the TableControlMouseDown event of the grid and use the PointToTableCellStyle method to identify click on rowheader in a grid. Here is a code snippet

private void gridGroupingControl1_TableControlMouseDown(object sender, GridTableControlMouseEventArgs e)
GridTableCellStyleInfo style = e.TableControl.PointToTableCellStyle(new Point(e.Inner.X,e.Inner.Y));
if( style != null
&&( style.TableCellIdentity.TableCellType == GridTableCellType.AlternateRecordRowHeaderCell
|| style.TableCellIdentity.TableCellType == GridTableCellType.RecordRowHeaderCell
|| style.TableCellIdentity.TableCellType == GridTableCellType.AddNewRecordRowHeaderCell ))
MessageBox.Show("Your clicked on " + style.TableCellIdentity.TableCellType);

Here is a sample.

Best regards,


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