Is there an easier way of getting a column name other than this example below? Seems a bit long-winded!
Or is this the best way because differents bands can have different headings?
you can use the following:
Actually you can pass in any nested property name as string to GetNAProperty method. you just needs to know the property path you are lokking for. and to help you find out that you can look at the API reference for the controls in the online help at https://www.infragistics.com/help/winforms-ta-uft/
Hope that will help
Thanks for the reply. I've just noticed though...the 'Key' property seems to return different values as compared to what the user sees. Does 'Key' return some sort of programmatic column name, and not the column heading text that is displayed to the user?? If so, what property contains the actual name the user sees??
It's ok I've spotted it. It's in Header.Caption under the columns collection!
yep , thats the one
I'm Glad I was able to help
I'm unable to get the column names from the grid, ive tried some of your suggested solutions but the property "GetNAProperty" is not working with QTP 11.
Please help me out with this as i'm stuck with this issue for a long now.
Also, how do i retrieve nested grid column names and values?