tags:

views:

214

answers:

2

Hi, I want to display tabular type data, but it will not be coming from a single datasource. I am currently using a label, but the alignment doesn't look that great.

Any ideas?

Again, the data is not being loaded from a datagrid or anything, each row is basically a label and a number e.g.

Total Users: 10123 Total Logins: 234

What is the best way to display this, any built-in control I should be using?

+2  A: 

Options:

  1. organize your data into a datatable and use a grid control.
  2. use the TableLayoutPanel to align you information.
hometoast
+1 on TableLayoutPanel. Dock.Fill the labels and set TextAlign to MiddleLeft
jop
A: 

If you don't want to use a datagrid to display data I sugest using a textbox with a monospace font at least, like courier new.

Eduardo Campañó