Hi, I'm programming in vb.net using vs2008 and sql2005.
Here is my issue, I have the following code:
This occurs when a datagridview column is clicked, if the column happens to be 0, it does that routine (edits the row/column) Here is the code that is contained in the "editframe" sql query:
MY PROBLEM:
After updating this code, and refilling the dataset, my dgv should reflect the changes, yes?
It doesn't though, and I feel as if its not a matter of the datagridview not being updated, if I insert new data into the dgv using insert statements, the change is reflected in the dgv and the dgv is refreshed using the same code which i showed above. I don't think something is updating right, but I've always updated info in sql servers using the above type method, why is this not working correctly?
Thanks !
Here is my issue, I have the following code:
VB.NET:
If e.ColumnIndex = 0 Then
param = InputBox("Edit frame name?", "Edit")
id = e.ColumnIndex + 1
Me.MaterialsTableAdapter.EditFrame(param, id)
Me.MaterialsTableAdapter.fill(Me.Dataset.Materials)
Me.MaterialsTableAdapter.Update(Me.DataSet.Materials)
This occurs when a datagridview column is clicked, if the column happens to be 0, it does that routine (edits the row/column) Here is the code that is contained in the "editframe" sql query:
VB.NET:
UPDATE [dbo].[Materials] SET [Frame] = @Frame WHERE (ID = @ID)
MY PROBLEM:
After updating this code, and refilling the dataset, my dgv should reflect the changes, yes?
It doesn't though, and I feel as if its not a matter of the datagridview not being updated, if I insert new data into the dgv using insert statements, the change is reflected in the dgv and the dgv is refreshed using the same code which i showed above. I don't think something is updating right, but I've always updated info in sql servers using the above type method, why is this not working correctly?
Thanks !