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?
Printable View
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?
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.
Quote:
Originally Posted by mendhak
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
That's not the ItemCommand event. :)
Sorry I am quite new to VB 2005. How to call that ItemCommand event out?Quote:
Originally Posted by mendhak