what i need is when enter some values(varchar ) in txt 1 and 2
it should be added in database and shown in gridview1 after i press butt1
any bodyknows full code answer/akdj
View Complete Post
I want to use gridview and bind the data and after i want insert the data in database using jquery,
below the link i got for delete
but i want the sample example for insert row from gridivew and add the database.
hi i am having a gridview on each row i am having a update and add button.
on click of either of the button i am opening a popup where the end user will enter data and on clck of ok button in the child page
based on the click ie
if i clicked update i need to update that particular row with the values from child page.
if i clicked on add i need to add a row below the row where i clicked add button .
can anyone help me with this?
I have three column comes from database table(Table1) and one column is for entering data for the user let us consider it look like this
ItemNo ItemName Qty uservalue
001 A 50 20
002 A 20 5
003 B 50
004 C 60 10
005 D 40
006 E 90 15
If its 300 row from database to gridview it will show 50 record with page navigation..
What i need is i need to insert data in to database table which gridview row has user value..
The output of the another table(Table2) will look like this after insert
ItemNo ItemName uservalue
001 A 20
002 A 5
HI and thanks in advance. asp.net using vb, using a codebehind page.
I have a relatively simple gridview bound to an product table that displays great. The problem comes when I choose to edit a row. When I do so, the gridviews' RowDataBound event fires and the values of the text properties of the tablecells in the row evaluate to "" emptystring.
I do notice that if I break within the GridView1_RowDataBound event during a refresh of the page, the values are there. But again, when I hit the "Edit" button in the first column (the CommandField column) . Text properties of the cells resolve to ""
Here is the code for the event, followed by the gridview in the form (inside an updatepanel)
Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound If e.Row.RowType = DataControlRowType.DataRow Then ' not a header, footer row.. etc. Dim cellProductNumber As TableCell = e.Row.Cells(3) ' ProductNumber column
'>>>>> after clicking "update", even though a value displays in the gridview, ' the cellProductNumber.Te
I have a problem that can't find a way to do it, I have a gridview with this columns:
ID | AreaName | CostCenter
with the "Enable Editing" option check and what I want to do is to get the values of areaname and costcenter and assign them to a label control so I can use the values for something else, for example:
ID AreaName CostCenter
1 Multiconector 1025
2 One Conector 2065
3 Plug & Play 1445