Forum Discussion
I finally managed to crack the problem.
By using:
rowIndex = pgCtrl.Cells.GetFocusedCellInfo.RowFieldIndex
colHeading = pgCtrl.Cells.GetFocusedCellInfo.DataField.Caption
rowHeading = pgCtrl.Cells.GetFocusedCellInfo.Data.GetRowValue(rowIndex)
I can get the column and row headings for the focused cell.
I have spent a considerable amount of time on this issue, together with a couple of others, all to do with the Dev Express pivot grid control. So, if anyone out there is interested, I have put together a document, containing some code examples that I have been able to use in my tests. It's a Microsoft Word 2003 document, which has been zipped for the purposes of attaching it here.
I would be happy to hear from anyone who has any comments, suggestions or better solutions!!
Many thanks.
Regards
Stephen.