Hi,
Is there an easier way of getting a column name other than this example below? Seems a bit long-winded!
SwfWindow(win).SwfTable(grid).Object.DisplayLayout.Bands.Item(0).Columns.Item(0).Key
Or is this the best way because differents bands can have different headings?
Cheers, Ryan
yep , thats the one
I'm Glad I was able to help
Ammar
It's ok I've spotted it. It's in Header.Caption under the columns collection!
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??
Hi Ryan,
you can use the following:
SwfWindow(win).SwfTable(grid).GetNAProperty("DisplayLayout.Bands[0].Columns[0].Key")
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://ko.infragistics.com/help/winforms-ta-uft/
Hope that will help