943,816 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 4670
  • ASP.NET RSS
Dec 16th, 2008
0

Insert,delete,edit,update in DataGrid?

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
preethi_ga is offline Offline
38 posts
since Jun 2008
Dec 16th, 2008
0

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

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.

asp.net Syntax (Toggle Plain Text)
  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.
Reputation Points: 25
Solved Threads: 18
Practically a Master Poster
binoj_daniel is offline Offline
645 posts
since Dec 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: sugesstion regarding ajax
Next Thread in ASP.NET Forum Timeline: Upload File in ASP.net using C#





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC