.net 3.5 gridview question

J

Jason Huang

Hi,

In the .Net 3.5 C# web application, if we have a GridView control GridView1
and is bound to DataTable DT1.
If I want to have every rows in the GridView in edit mode by default, how do
I do it?
The reason for doing this is user want to have something like a 3X5
GridView, and he can type in every cells in the GridView without clicking
the Edit button row by row.
Thanks for help.


Jason
 
D

David

I haven't tried this, but I can't see why it wouldn't work...

If you do NOT autogenerate the columns, then in your itemtemplate, just put
textboxes, then while not in true edit mode, you can change the text.

If you then have a save button (or even ontextchanged autopostback via ajax)
you should then be able to loop through the rows in the gridview and save
the contents.

--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
 

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

Top