Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Batch Row Updates using DataGrid in ASP.NET

Author  Topic 

kris22
Starting Member

35 Posts

Posted - 2008-10-21 : 12:00:23
Hi,

I am using one of the ASP.NET Datagrid to display data.i was able to update or delete 1 row at a time. Is it possible to do the Mass Update of all rows at a time? If so can some body help me with this
Appreciate your help
Thx

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2008-10-21 : 12:21:15
Yes.

run a for each loop to iterate through your collection
Go to Top of Page

kris22
Starting Member

35 Posts

Posted - 2008-10-21 : 12:31:15
quote:
Originally posted by afrika

Yes.

run a for each loop to iterate through your collection



Hi,
Can you provide with sample code for this? i am using ASP.NET/VB.NET for my datagrid. each row has it's own ID field. how do i update multiple rows at a time?
Thx
Go to Top of Page

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2008-10-21 : 12:34:39
I can in c#, sorry i dont do vb.net
Go to Top of Page

kris22
Starting Member

35 Posts

Posted - 2008-10-21 : 14:19:30
quote:
Originally posted by afrika

I can in c#, sorry i dont do vb.net


c# is fine, i can convert into Vb.net
Thx
Go to Top of Page

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2008-10-21 : 15:55:51
here is an excellent resource, with videos. but in c#

http://gridviewguy.com/Articles/35_Selecting_Single_and_Multiple_Checkboxes_in_Datagrid.aspx
Go to Top of Page
   

- Advertisement -