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 : Nov 16th 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:

Created:

Updated:

Platform:

Replies:

108687 May 7,2013 01:42 PM UTC May 13,2013 06:21 PM UTC WPF 2
loading
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];
     //vc.HeaderText
 }

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.

 

Regards,

Rajasekar


CONFIRMATION

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.

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

;