[求助]Update
这是出错信息:
The GridView 'GridView1' fired event RowEditing which wasn't handled.
代码如下:
Protected Sub GridView1_RowUpdating1(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewUpdateEventArgs) Handles GridView1.RowUpdating
Dim ID As Int32
Dim ConnString As String
Dim strSql As String
'GridView1.Columns(2).Visible = True
ID = Int32.Parse(GridView1.Rows(e.RowIndex).Cells(2).Text.Trim().ToString())
strSql = "update test set title =@title where id =" & ID
ConnString = ConfigurationManager.AppSettings("ConnString").ToString()
Dim conn As New SqlConnection(ConnString)
Dim comm As New SqlCommand(strSql, conn)
comm.Parameters.Add(New SqlParameter("@title", SqlDbType.VarChar, 20))
comm.ExecuteNonQuery()
BindData()
'GridView1.Columns(2).Visible = False
End Sub
我不懂它到底提示的是什么
请帮下忙