VB.Net 2003. I have a DataGrid (grdPro1) on one form. I am passing a row of the grid to a modal form using a property in the modal form. When I make a change to the row in the modal form, they do not show up in grdPro1 after returning from the modal form. I have looked at the values in the PopupWorkRow after the DialogResult.OK and they are changed. As a test I added the "HELP ME" line if I cancel out of the modal form. This change shows up immediately. Not sure why the DialogResult.OK branch isn't working. There must be something really simple I'm missing here. I've tried begin and end edit on the row and also refreshing the grid. I've used properties on modal forms many times to retrieve specific values with no problems, but never a row like this. Is it because I'm calling this code from the grdPro1.MouseDown event and looking for a right click? As you can see, I need some help here.
Auguy
Sylvania/Toledo Ohio
Code:
...
Dim Row1 As Integer
Row1 = myHitTest.Row
Dim PopupWorkRow As DataRow
PopupWorkRow = dsProFile.Tables("ProFile").Rows(Row1)
Dim ChangeColumnForm As New ChangeColumnValue
ChangeColumnForm.ProRow = PopupWorkRow
If ChangeColumnForm.ShowDialog() = DialogResult.OK Then
PopupWorkRow = ChangeColumnForm.ProRow
Else
PopupWorkRow("ExceptCode") = "HELP ME"
End If
ChangeColumnForm.Close()
ChangeColumnForm.Dispose()
ChangeColumnForm= Nothing
Auguy
Sylvania/Toledo Ohio