Need some help updating the database from my datagrid.
The code that populates the grid is...
m_da = New SqlClient.SqlDataAdapter(strSql, pStrConnection)
m_ds = New DataSet("mytestds")
I was trying to update the db using ....
But I get this error. I am guessing what to do as I can't find any good examples.
An unhandled exception of type 'System.InvalidOperationException' occurred in system.data.dll
Additional information: Update requires a valid UpdateCommand when passed DataRow collection with modified rows.