sykotex
asked on
Enabling editing in a gridview
Hi
I am populating a gridview with the code below, how can I enable editing like you get if setup through using the gui?
Using Visual Studio 2010 vb.net
I am populating a gridview with the code below, how can I enable editing like you get if setup through using the gui?
Using Visual Studio 2010 vb.net
Dim conString = ConfigurationManager.ConnectionStrings("clientsConnectionString")
Dim strConnString As String = conString.ConnectionString
Dim myConnection As SqlConnection
Dim myCommand As SqlDataAdapter
myConnection = New SqlConnection(strConnString)
myCommand = New SqlDataAdapter("SELECT matter,client,mattername FROM client1 where client like '%" & txtClient.Text & "%' and matter like '%" & txtMatter.Text & "%' and mattername like '%" & txtMattername.Text & "%'", myConnection)
' Create and fill a DataSet.
Dim ds As DataSet = New DataSet()
myCommand.Fill(ds)
grdClientres.DataSource = ds
grdClientres.DataBind()
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.