471,354 Members | 1,474 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

What control should I use to display an editable table of data?

Hi! I've got some data that I want to display and edit in table-format,
just like you would in Excel.

It seems like this should be fairly straightforward, but I can't find
any controls that do what I want. The closest one I've found is a
ListView, but it will only let me edit the first column of data.

What control should I be using? My data is very simple (about 10
ArrayLists, each with 2 strings followed by 2 floats).

Thanks : O )

Jan 9 '06 #1
4 1257
Have you looked at the DataGrid (in .NET 1.1 and before) or the
DataGridView (in .NET 2.0)? They are grid controls meant for the display
and editing of tabular data.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<jo*****@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
Hi! I've got some data that I want to display and edit in table-format,
just like you would in Excel.

It seems like this should be fairly straightforward, but I can't find
any controls that do what I want. The closest one I've found is a
ListView, but it will only let me edit the first column of data.

What control should I be using? My data is very simple (about 10
ArrayLists, each with 2 strings followed by 2 floats).

Thanks : O )

Jan 9 '06 #2
No, I hadn't, I was under the impression that DataGrids only supported
external DBs as data sources.

I'll give that a look, thanks!

Jan 9 '06 #3
A data grid will support anything that implements IList, actually, and
there are a lot of things out there that do. =)
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<jo*****@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
No, I hadn't, I was under the impression that DataGrids only supported
external DBs as data sources.

I'll give that a look, thanks!

Jan 9 '06 #4
Yeah, that makes a lot more sense : O )

Thanks again!

Jan 9 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Al Wilkerson | last post: by
1 post views Thread by polder_udo | last post: by
2 posts views Thread by adrin | last post: by
3 posts views Thread by Emma Middlebrook | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.