Link to home
Start Free TrialLog in
Avatar of Petermcg001
Petermcg001Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Padding in treeview

I'm populating a treeview from a datatable.  I can create all the nodes I want OK but I'm having trouble with the formatting.  Can anyone explain why the following does not give equal "columns" :

oNode.Nodes.Add(oRow(0).ToString.PadRight(20) & oRow(1).ToString.PadRight(50) & _
                            oRow(2).ToString.PadLeft(10) & oRow(3).ToString.PadLeft(10) & _
                            oRow(4).ToString.PadLeft(10))

Thanks
ASKER CERTIFIED SOLUTION
Avatar of TimCottee
TimCottee
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Petermcg001

ASKER

Thanks Tim