.net 3.5 gridview question

  • Thread starter Thread starter Jason Huang
  • Start date Start date
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
 
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
 
Back
Top