Insert,delete,edit,update in DataGrid?

Please support our ASP.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
Reply

Join Date: Jun 2008
Posts: 38
Reputation: preethi_ga is an unknown quantity at this point 
Solved Threads: 0
preethi_ga preethi_ga is offline Offline
Light Poster

Insert,delete,edit,update in DataGrid?

 
0
  #1
Dec 16th, 2008
Can anyone tell me how to Insert,Delete,edit,update records in a DataGrid in ASP.NET? if u give the coding in VB , i can understand properly.
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 645
Reputation: binoj_daniel is an unknown quantity at this point 
Solved Threads: 17
binoj_daniel's Avatar
binoj_daniel binoj_daniel is offline Offline
DaniWeb Expert

Re: Insert,delete,edit,update in DataGrid?

 
0
  #2
Dec 16th, 2008
You can use the GridView which is the most recent version of the DataGrid control in ASP.NET.

You can make use of the GridView events RowCommand, RowDataBound, RowDeleting, RowEditing, RowUpdating which you can set in the GridView markup. See the below code markup.

  1. <asp:GridView ID="gv_Lookup" runat="server" DataKeyNames="LookupCD"
  2. AutoGenerateColumns="True" OnRowDataBound="gv_Lookup_RowDataBound" OnRowEditing="gv_Lookup_RowEditing" OnRowUpdating="gv_Lookup_RowUpdating"
  3. OnRowCommand="gv_Lookup_RowCommand" OnRowDeleting="gv_Lookup_RowDeleting" ShowFooter="True"
  4. >

For more detailed articles on ASP.NET and other technologies visit www.coderewind.com
Last edited by peter_budo; Dec 16th, 2008 at 4:25 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC