Rowupdating event of gridview in asp net Kolkata boudi night room

by  |  28-Jan-2020 04:55

rowupdating event of gridview in asp net-5

Open() Dim cmd As New Sql Command("Select * from stores", con) Dim da As New Sql Data Adapter(cmd) Dim ds As New Data Set() da.

Page Private con As New Sql Connection("Data Source=.; Initial Catalog=pubs; User ID=sa; Password=*****") Protected Sub Page_Load(By Val sender As Object, By Val e As System. Load If Not Is Post Back Then load Stores() End If End Sub Protected Sub load Stores() con.

Protected Sub Grid View1_Row Command(By Val sender As Object, By Val e As System.

I had change the syntax error in c# as below: int current Row Index = Int32.

Grid View control Row Command event will give you the Product ID of the product from the Grid View Rows when user will click any of the button in the Grid View. To handle click event of the buttons in Grid View you need to handle Row Command event of the Grid View control.

Community Discussion