gridview control,edit update delete

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Dec 2008
Posts: 21
Reputation: divyasrinivasan is an unknown quantity at this point 
Solved Threads: 0
divyasrinivasan divyasrinivasan is offline Offline
Newbie Poster

gridview control,edit update delete

 
0
  #1
Dec 31st, 2008
hi i want to have the code for editing,updating n deleting data in gridvoiew
i tried a lot searching in google..i trid also but could not get the output....i want how to insert textboxes using the edit colums ....i want in detail pls help...

2.next is how to add rows dynamically to gridview n custom columns to gridview...if u answer many may find useful as this is the baic of gridview...pls do help...i want indetail...
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 104
Reputation: Aneesh_Argent is an unknown quantity at this point 
Solved Threads: 18
Aneesh_Argent Aneesh_Argent is offline Offline
Junior Poster

Re: gridview control,edit update delete

 
0
  #2
Dec 31st, 2008
Hope this will be helpful for your first question

http://msdn.microsoft.com/en-us/library/ms972940.aspx

Hope this will be helpful for your second question
http://devpinoy.org/blogs/keithrull/...h-asp-net.aspx
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 144
Reputation: sierrainfo is an unknown quantity at this point 
Solved Threads: 9
sierrainfo sierrainfo is offline Offline
Junior Poster

Re: gridview control,edit update delete

 
0
  #3
Jan 1st, 2009
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 34
Reputation: vizy is an unknown quantity at this point 
Solved Threads: 6
vizy's Avatar
vizy vizy is offline Offline
Light Poster

Re: gridview control,edit update delete

 
0
  #4
Jan 2nd, 2009
Njoy koding... >>>
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 21
Reputation: divyasrinivasan is an unknown quantity at this point 
Solved Threads: 0
divyasrinivasan divyasrinivasan is offline Offline
Newbie Poster

Re: gridview control,edit update delete

 
0
  #5
Jan 3rd, 2009
thanks everyone for replying ..iam trying out if ny doubts will get back..thanks a lot
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 25
Reputation: nitu_thakkar has a little shameless behaviour in the past 
Solved Threads: 1
nitu_thakkar's Avatar
nitu_thakkar nitu_thakkar is offline Offline
Light Poster

Re: gridview control,edit update delete

 
0
  #6
Jan 4th, 2009
this code may help you to find your solution




  1. <%@Import Namespace= "System.Data.Oledb" %>
  2. <%@ Page Language="VB" AutoEventWireup="false" CodeFile="datagrid.aspx.vb" Inherits="datagrid" %>
  3.  
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5.  
  6. <script runat ="server" >
  7.  
  8. Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  9.  
  10. Dim conathors As New OleDbConnection
  11. Dim cmd1 As New OleDbCommand
  12.  
  13. conathors = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;DATA Source=e:\nitu\vb.net\database-for-pre.mdb")
  14. conathors.Open()
  15.  
  16. cmd1 = New OleDbCommand("select fname,lname,id from new_user", conathors)
  17. dgrd.DataSource = cmd1.ExecuteReader()
  18. dgrd.DataBind()
  19.  
  20. conathors.Close()
  21.  
  22. End Sub
  23.  
  24. Sub DataNavigateUrlFormatString()
  25.  
  26.  
  27. End Sub
  28.  
  29.  
  30. </script>
  31.  
  32. <html xmlns="http://www.w3.org/1999/xhtml" >
  33. <head runat="server">
  34. <title>Datagrid HyperLink</title>
  35. </head>
  36. <body>
  37. <form id="form1" runat="server">
  38. <asp:DataGrid ID="dgrd" AutoGenerateColumns ="false" EnableViewState ="false" CellPadding ="10" runat ="server" >
  39.  
  40. <Columns >
  41.  
  42. <asp:BoundColumn HeaderText ="Student id" DataField ="id" />
  43. <asp:HyperLinkColumn HeaderText ="Detail" DataNavigateUrlField ="id" DataNavigateUrlFormatString ="detail1.aspx?id={0}" Text ="view Detail" />
  44. </Columns>
  45.  
  46. </asp:DataGrid>
  47. <div>
  48.  
  49. </div>
  50. </form>
  51. </body>
  52. </html>
Last edited by peter_budo; Jan 11th, 2009 at 2:43 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  
Join Date: Jun 2007
Posts: 1,389
Reputation: evstevemd has a spectacular aura about evstevemd has a spectacular aura about evstevemd has a spectacular aura about 
Solved Threads: 127
evstevemd's Avatar
evstevemd evstevemd is offline Offline
Nearly a Posting Virtuoso

Re: gridview control,edit update delete

 
0
  #7
Jan 6th, 2009
this code may help you:
<don't ask foolish questions>
http://www.daniweb.com/forums/thread166180.html
</don't ask foolish questions>
Atheist: God is man made imagination, he doesn't exist!
Theist: It's okay, can you imagine anything else that doesn't exist?
Junior MD --- Python, C++ and PHP
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 21
Reputation: divyasrinivasan is an unknown quantity at this point 
Solved Threads: 0
divyasrinivasan divyasrinivasan is offline Offline
Newbie Poster

Re: gridview control,edit update delete

 
0
  #8
Jan 7th, 2009
hi ...
thanks a lot..i got how to edi,update,n delete..now i want to validate the textbox wen i press update...like i want to ckeck for null vlues entry...only numbers.......i am searching for javascript but no proper result...

any links ..pls post....
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 220
Reputation: mail2saion is an unknown quantity at this point 
Solved Threads: 33
mail2saion's Avatar
mail2saion mail2saion is offline Offline
Posting Whiz in Training

Re: gridview control,edit update delete

 
0
  #9
Apr 10th, 2009
YOU can also vist 2 links:
http://shawpnendu.blogspot.com/2009/...eteupdate.html

FOR template column yu can read below link:
http://shawpnendu.blogspot.com/2009/...l-data-in.html
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 220
Reputation: mail2saion is an unknown quantity at this point 
Solved Threads: 33
mail2saion's Avatar
mail2saion mail2saion is offline Offline
Posting Whiz in Training

Re: gridview control,edit update delete

 
0
  #10
Apr 12th, 2009
HI,
SORRY PLEASE AVOID MY ABOVE POST. FOR NUMERIC VALIDATION YOU CAN RAED THE BELOW LINK:
http://shawpnendu.blogspot.com/2009/...isnumeric.html

HOPE IT WILL HELP YOU.
Reply With Quote Quick reply to this message  
Reply

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



Similar Threads
Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



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

©2003 - 2009 DaniWeb® LLC