Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Edit multiple rows of a datagrid (ASP 1.1)

Reply
Thread Tools

Edit multiple rows of a datagrid (ASP 1.1)

 
 
postings@alexshirley.com
Guest
Posts: n/a
 
      04-14-2005
Hi

Silly question here I guess.....

I know I can use an EditCommandColumn to edit a particular row in a
datagrid:

--------------------------------
Private Sub DataGrid_Edit(ByVal source As System.Object,ByVal e As
System.Web.UI.WebControls.DataGridCommandEventArgs ) Handles
DataGrid.EditCommand
DataGrid.EditItemIndex = e.Item.ItemIndex
Call BindTheDataGrid()
End Sub
--------------------------------

Is there anyway I can update more than one row?

i.e. When the datagrid is first displayed one or more rows are already
displayed as editable so the user is effectively prompted/forced to
enter the information in?

Many thanks

Alex

 
Reply With Quote
 
 
 
 
Brock Allen
Guest
Posts: n/a
 
      04-14-2005
You'll have to use TemplateColumns for everything and make controls that
allow the user to edit everything at once. In your postback code then you'll
have to manually iterate over every row and grab the data and do your updates
to the DB.

-Brock
DevelopMentor
http://staff.develop.com/ballen



> Hi
>
> Silly question here I guess.....
>
> I know I can use an EditCommandColumn to edit a particular row in a
> datagrid:
>
> --------------------------------
> Private Sub DataGrid_Edit(ByVal source As System.Object,ByVal e As
> System.Web.UI.WebControls.DataGridCommandEventArgs ) Handles
> DataGrid.EditCommand
> DataGrid.EditItemIndex = e.Item.ItemIndex
> Call BindTheDataGrid()
> End Sub
> --------------------------------
>
> Is there anyway I can update more than one row?
>
> i.e. When the datagrid is first displayed one or more rows are already
> displayed as editable so the user is effectively prompted/forced to
> enter the information in?
>
> Many thanks
>
> Alex
>




 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Snapshot restraint - edit, edit, edit Alan Browne Digital Photography 24 05-10-2005 10:15 PM
Snapshot restraint - edit, edit, edit Patrick Digital Photography 0 05-06-2005 10:53 PM
How can I let the user edit multiple rows at a time? ad ASP .Net 1 03-03-2005 06:04 AM
Edit All Function for DataGrid, and Moving the Edit Function in a DataGrid Schultz ASP .Net 3 02-14-2005 04:47 AM
Datagrid: click edit and all the rows disappear! trebor@sirius.com.no.more ASP .Net 4 01-03-2004 07:16 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57