Need to change datagrid cell values programatically
Posted on 2004-10-29
On the Mouse Up event, I ask the user if they want to automatically update the values in this row. If they say yes, I want to change various cell values and display those changes in the grid.
I assume I have to change the table and refresh the grid. I am not getting any errors but I don't see the updates in the grid. My dataset contains 3 tables. The last one is the one bound to the datagrid. Here is my code.
If Result = DialogResult.Yes Then
Dim intRow As Integer = DataGrid1.CurrentRowIndex
DsReqUpd14.Tables(2).Rows(intRow)(2) = Date.Today.ToString()