Is there a gridlike control that allows editing?

  • Thread starter Thread starter CR
  • Start date Start date
C

CR

Suppose you have a simple table consisting of Name, Address, and
Phone#. If I want to allow the user to edit this table I do the
following: I fill a listview or listbox control with the rows from the
table. Then the user highlights the row they want to edit and hits an
"Edit" button. That pulls up a form with Name,Address and Phone#
textboxes for the user to edit. Then I change the data in the table
and update the listbox.

Is there a control that would allow the user to directly edit the data
right in the control? I don't want a control that is data bound. I
want to manually update the data to the table.

Thanks!

Chuck.
 
The DataGrid is probably your best control. You can hook numerous events in
both datagrid (if you inherit) and ADO.NEt that will allow you to control
your data updates. otherwise, your going to write a lot of extra code.
 
CJ Taylor said:
The DataGrid is probably your best control. You can hook numerous events in
both datagrid (if you inherit) and ADO.NEt that will allow you to control
your data updates. otherwise, your going to write a lot of extra code.

Thanks! That seems the be the control I need to use.
 
There's also a free grid at my site that is built for just the kind of
simple purpose you're talking about--if you're still wanting to avoid
data-bound. Although, unfortunately, it's still COM-based for now.

Brian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top