Petermcg001
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).To String.Pad Right(20) & oRow(1).ToString.PadRight( 50) & _
oRow(2).ToString.PadLeft(1 0) & oRow(3).ToString.PadLeft(1 0) & _
oRow(4).ToString.PadLeft(1 0))
Thanks
oNode.Nodes.Add(oRow(0).To
oRow(2).ToString.PadLeft(1
oRow(4).ToString.PadLeft(1
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER