Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
310
Retrieving Column Names
posted

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

Parents
  • 6729
    Offline posted

    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://es.infragistics.com/help/winforms-ta-uft/

     Hope that will help

    Ammar

Reply Children