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. Image for the cookie policy date
close icon

Get the header info of the cell clicked

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

2 Replies

PS Phil Steel 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];

RG Rajasekar G Syncfusion Team 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.




Live Chat Icon For mobile
Up arrow icon