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

cells column name

i thought this would be easy but just cant see it... from within a gridcontrol querycellinfo event how do i know the cells column header i can get the colindex and rowindex but how do i get "A1" or whatever the cell is

1 Reply

AD Administrator Syncfusion Team September 19, 2005 10:37 AM UTC

Hi Kevin, You could try this code snippet: private void gridControl1_QueryCellInfo(object sender, Syncfusion.Windows.Forms.Grid.GridQueryCellInfoEventArgs e) { string s; if(e.RowIndex==1 && e.ColIndex==1) { s=Syncfusion.Windows.Forms.Grid.GridRangeInfo.GetAlphaLabel(e.ColIndex)+ Syncfusion.Windows.Forms.Grid.GridRangeInfo.GetNumericLabel(e.RowIndex); Console.WriteLine(s); } } Let us know if this helps. Best Regards, Jeba.

Loader.
Live Chat Icon For mobile
Up arrow icon