Home All Groups Group Topic Archive Search About

Best way to display 4 rows / 4 columns

Author
13 Feb 2006 2:15 AM
matthewtec
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

Author
13 Feb 2006 2:50 AM
Chris
matthewtec wrote:
Show quoteHide quote
> 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
>
>

If you are using 2.0 framework the datagridview is probably a better bet.
Author
13 Feb 2006 7:17 AM
Cor Ligthert [MVP]
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
Author
13 Feb 2006 11:36 AM
Ken Tucker [MVP]
Hi,

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

Ken
------------------
Show quoteHide quote
"matthewtec" <nixspam_matts_tech@yahoo.com> wrote in message
news:%23tGt2OEMGHA.4052@TK2MSFTNGP15.phx.gbl...
> 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
>