| | |
gridview control,edit update delete
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Dec 2008
Posts: 21
Reputation:
Solved Threads: 0
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...
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...
•
•
Join Date: Dec 2008
Posts: 104
Reputation:
Solved Threads: 18
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
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
this code may help you to find your solution
asp.net Syntax (Toggle Plain Text)
<%@Import Namespace= "System.Data.Oledb" %> <%@ Page Language="VB" AutoEventWireup="false" CodeFile="datagrid.aspx.vb" Inherits="datagrid" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat ="server" > Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim conathors As New OleDbConnection Dim cmd1 As New OleDbCommand conathors = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;DATA Source=e:\nitu\vb.net\database-for-pre.mdb") conathors.Open() cmd1 = New OleDbCommand("select fname,lname,id from new_user", conathors) dgrd.DataSource = cmd1.ExecuteReader() dgrd.DataBind() conathors.Close() End Sub Sub DataNavigateUrlFormatString() End Sub </script> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Datagrid HyperLink</title> </head> <body> <form id="form1" runat="server"> <asp:DataGrid ID="dgrd" AutoGenerateColumns ="false" EnableViewState ="false" CellPadding ="10" runat ="server" > <Columns > <asp:BoundColumn HeaderText ="Student id" DataField ="id" /> <asp:HyperLinkColumn HeaderText ="Detail" DataNavigateUrlField ="id" DataNavigateUrlFormatString ="detail1.aspx?id={0}" Text ="view Detail" /> </Columns> </asp:DataGrid> <div> </div> </form> </body> </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.
this code may help you:
<don't ask foolish questions>
http://www.daniweb.com/forums/thread166180.html
</don't ask foolish questions>
<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
Theist: It's okay, can you imagine anything else that doesn't exist?
Junior MD --- Python, C++ and PHP
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
http://shawpnendu.blogspot.com/2009/...eteupdate.html
FOR template column yu can read below link:
http://shawpnendu.blogspot.com/2009/...l-data-in.html
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.
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.
![]() |
Similar Threads
- Insert,delete,edit,update in DataGrid? (ASP.NET)
- Editing in GridView Control (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: tree view problem
- Next Thread: Web form
| Thread Tools | Search this Thread |
.net 2.0 3.5 ajax alltypeofvideos appliances asp asp.net beginner box browser businesslogiclayer button c# c#gridviewcolumn cac checkbox class compatible confirmationcodegeneration content contenttype control countryselector courier dataaccesslayer database datagrid datagridview datalist deployment development dgv dialog dropdownlist dropdownmenu dynamic dynamically edit embeddingactivexcontrol fileuploader fill findcontrol flash flv forms gridview gudi homeedition iis javascript jquery list listbox menu microsoft mouse mssql nameisnotdeclared news novell numerical opera order problem radio ratings redirect registration relationaldatabases reportemail schoolproject search security serializesmo.table sessionvariables silverlight smoobjects software sql sql-server ssl tracking treeview validatedate validation vb.net videos vista visual-studio visualstudio vs2008 web webapplications webarchitecture webdevelopment webprogramming wizard xml xsl






