TreeView: How align text to the right ???

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want use a treeview to show a table with 2 columns:
the first column contains the name of the book and i want to align it to the
left.
the second one contains the number of books selled and i want align it to
the right.
How can i reach this result ??? The name of the books have different length
and if i insert a calculated number of spaces to have the same length of each
string the number of books selled are not aligned to the right because the
different letters of the titles have different width on the screen. How can i
calculate the exact number of spaces to insert in the string, considering the
title, to exactly allign the number on the right ???
Many thanks
 
Back
Top