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.
Unfortunately, activation email could not send to your email. Please try again.

Get the header info of the cell clicked

Thread ID:





108687 May 7,2013 09:42 AM May 13,2013 02:21 PM WPF 2
Tags: GridControl
Phil Steel
Asked On May 7, 2013 09:42 AM

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 10:26 AM

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 02:21 PM

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.

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.