Groups | Blog | Home
all groups > vb.net > february 2006 >

vb.net : Best way to display 4 rows / 4 columns


matthewtec
2/12/2006 9:15:58 PM
This may turn out to be an obvious answer of "DataGrid", but I haven't used
that control much and so I wanted to get some thoughts.

If I want to display essentially a grid that could be a spread-sheet type
display, of 4 rows by 4 columns, or anything along those lines [integers],
I'm wondering what would be the best control to display them in.

.... essentially, I'm looking for something that would be more efficient than
putting sixteen individual Textboxes on the screen.

If it is indeed the DataGrid, I'll see about using that, but I didn't want
to start down a route without knowing whether that's a good idea or not.
[and I'm not sure if there's other controls out there that I should look
at].

Thanks for any thoughts anyone can provide.
matt

Chris
2/12/2006 9:50:58 PM
[quoted text, click to view]

Cor Ligthert [MVP]
2/13/2006 12:00:00 AM
Matthewtec,

In my idea is there beside the by Chris called DataGridView not a better
standard alternative.

http://www.vb-tips.com/default.aspx?ID=76a81eb8-ea2d-48f4-99c3-a3539697edbd

Here a very simple sample how to build something without a database.

I hope this helps,

Cor

Ken Tucker [MVP]
2/13/2006 6:36:58 AM
Hi,

If you are using vs.net 2003 the listview control is another option
if you are binding to a datasource.

Ken
------------------
[quoted text, click to view]

AddThis Social Bookmark Button