Discussion Thread
UniToolbox
Message Thread
The leading control suite for Unicode development in Visual Basic.
Posted in the UniToolbox Forum.
UniListView: Reorder ColumnHeaders
Hello,
i have a problem to read the positions of the columnheaders.
iam reading every column after changing the columnpositions in the UniListView-Control with following code.
For Each column In UniListViewControl.ColumnHeaders
textvalue= column .Text
Next
but the columnposiotions are the same like befor changing.
example:
start with "ColumnA, ColumnB, ColumnC"
reorder to "ColumnB, ColumnC, ColumnA"
i can see at the control "ColumnB, ColumnC, ColumnA"
but the result of reading columns ist "ColumnA, ColumnB, ColumnC"
How can i read the actual columnposition??
Sincerely
Markus
UniListView: Reorder ColumnHeaders
Perhaps I could not explain my problem exactly.
It is very important for me to save the positions of each column.
Unfortunately, it looks as if the property ".position" while moving of columns not to be updated.
Is there any solution to the problem?
UniListView: Reorder ColumnHeaders
Markus,
Interesting issue, I'm wondering if you could read the text of the column header and address the problem that way?
UniListView: Reorder ColumnHeaders
Hello Nico,
i dont know what you mean with your question.
if i loop throu the columnheadercollection, for example in this way
While lncounter UniListViewControl.ColumnHeaders.Count
textvalue = UniListViewControl.ColumnHeaders.Item(lncounter + 1).Text
positionvalue= UniListViewControl.ColumnHeaders.Item(lncounter + 1).Position
debug.print lncounter & "=" & textvalue & " " & positionvalue
lncounter = lncounter + 1
Wend
the ".Position"-Property before and after moving a column the same value.
If i have columns A,B,C and moving the columns to C,B,A the debug.print result of the loop after reorder is
1=A 1
2=B 2
3=C 3
on my screen i can see
1=C 1
2=B 2
3=A 3
May i make any mistake. I just want to know wich column is at wich position after reorder the columns.
Sorry, my english is not very well.
UniListView: Reorder ColumnHeaders
I understand the problem, and I've asked the developers to take a look, but unfortunatly we don't have a solution at this time.