|
-
Jan 21st, 2008, 10:45 AM
#1
Thread Starter
New Member
[2005] inserting into DB from datagrid
i had populated 3 colum of data into a datagrid.
also added an extra colum for button to select the row.
how to code such that when i select the row it will send to my database for the row of the data?
-
Jan 21st, 2008, 11:30 AM
#2
Re: [2005] inserting into DB from datagrid
Handle the ItemCommand event of the gridview (Since you say VS 2005), wherein you can then find out the current row index, the corresponding data (e.Item.FindControl()), and then perform the updates to the database.
-
Jan 21st, 2008, 06:27 PM
#3
Thread Starter
New Member
Re: [2005] inserting into DB from datagrid
 Originally Posted by mendhak
Handle the ItemCommand event of the gridview (Since you say VS 2005), wherein you can then find out the current row index, the corresponding data (e.Item.FindControl()), and then perform the updates to the database.
its doesnt seems to regconise e.item.FindControl()
Protected Sub GVResults_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GVResults.SelectedIndexChanged
'Code here
sub
-
Jan 22nd, 2008, 05:41 AM
#4
Re: [2005] inserting into DB from datagrid
That's not the ItemCommand event.
-
Jan 22nd, 2008, 07:15 AM
#5
Thread Starter
New Member
Re: [2005] inserting into DB from datagrid
 Originally Posted by mendhak
That's not the ItemCommand event. 
Sorry I am quite new to VB 2005. How to call that ItemCommand event out?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|