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

  • Thread starter Thread starter joshlaw
  • Start date Start date
J

joshlaw

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 )
 
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.
 
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!
 
A data grid will support anything that implements IList, actually, and
there are a lot of things out there that do. =)
 
Back
Top