See: GetBandAtPointer method (DataWindows)
"Reports the band in which the pointer is currently located, as well as the row number associated with the band. The bands are the headers, trailers, and detail areas of the DataWindow and correspond to the horizontal areas of the DataWindow painter."
In your datawindow doubleclick event use this:
Code:
String band
band = dw_rpt.GetBandAtPointer()
Some possible return values are:
Return value Meaning
detail[tab]8 In row 8 of the detail band of dw_rpt
header[tab]10 In the header of dw_rpt; row 10 is the first visible row
header.2[tab]1 In the header of group level 2 for row 1
trailer.1[tab]5 In the trailer of group level 1 for row 5
footer[tab]111 In the footer of dw_rpt; the last visible row is 111
summary[tab]23 In the summary of dw_rpt; the last row is 23