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

Get the header info of the cell clicked

Thread ID:





108687 May 7,2013 01:42 PM UTC May 13,2013 06:21 PM UTC WPF 2
Tags: GridControl
Phil Steel
Asked On May 7, 2013 01:42 PM UTC

Seems like it should be straight forward but is there a way to get the header text of the cell clicked in the GridDataControl?

Phil Steel
Replied On May 7, 2013 02:26 PM UTC

No worries, figured it out:

private void GridDataControl_OnCellClick(object sender, GridCellClickEventArgs e)
     var vc = this.GridDataControl.VisibleColumns[e.ColumnIndex];

Rajasekar G [Syncfusion]
Replied On May 13, 2013 06:21 PM UTC

Hi Phil ,


Thank you for your update and also you can get the HeaderText by using the following code snippet.


Code Snippet[C#]:


void SyncGrid_CellClick(object sender, GridCellClickEventArgs e)


        var HeaderText = this.SyncGrid.Model[e.RowIndex, e.ColumnIndex].CellValue.ToString();



Please let us know if you have any questions.





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