I have a question regarding alignments in a column. I know there is a decimal alignment but I would like to have to add the unit symbol (mL, L, etc) right after the number in the same column.
How could I do that? I do have to rollout my own implementation? I know I could put the unit in a separate column but our users prefer when it’s in the same column
Var r As Double
Var s As String
ListBox1.ColumnCount = 2
ListBox1.ColumnAlignmentAt(1 ) = DesktopListBox.Alignments.Decimal
For i As Integer = 100 To 120
r = System.Random.InRange(0, 10000) / 100
s = R.ToString
ListBox1.AddRow ( i.ToString , s + " mL" )
Next
alternative you could use the cell paint events with TextShape object
the original value you could store in the cell.Tag (instead of a string)
or use a font with same letter size and fill the ending with spaces to have same amount of chars.