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
295
How do you get Column Header texts from ColumnSetting.ColumnSets?
posted

I am able to get the count by doing DocumentTreeTree.GetNAProperty("ColumnSettings.ColumnSets[0].Columns.Count")

but unble to get the column header texts by doing the following, it returns empty strings.

 

 

For

 

 

i As Integer = 0 To

ColumnCount - 1

 

 

Dim ColumnCaptions As String = DocumentTreeTree.GetNAProperty("ColumnSettings.ColumnSets[0].Columns[" & i & "].Text")

Console.WriteLine(ColumnCaptions)

 

Next

Any ideas?

Thanks in advance!

Parents
  • 6729
    Suggested Answer
    Offline posted

    Try TextResolved instead of Text, i.e.:

    Dim ColumnCaptions As String = DocumentTreeTree.GetNAProperty("ColumnSettings.ColumnSets[0].Columns[" & i & "].TextResolved")

    if the developer did not set the text explicitly it will be empty string but the header text will be set to TextResolved which is usually the name of the column

    Hope that works

    Regards,

    Ammar

Reply Children
No Data