Hi I have a problem with my datagrid. When I click on the second record in my datagrid the focus always go back to the first record in it.
here is my code and the line with "**" is where the currentRowindex change from 1 to 0
here is my code and the line with "**" is where the currentRowindex change from 1 to 0
Code:
TempNoLine = Me.DataGrid1.Item(Me.DataGrid1.CurrentRowIndex, 4)
TempNoLineRev = Me.DataGrid1.Item(Me.DataGrid1.CurrentRowIndex, 5)
TempFilter = ""
TempFilter += "isdeleted = 0 And job_Seq = " & Me.JobNumber.Text & _
" and created_by = '" & Me.lbCreatedBy.Text & _
"'and Job_Line = " & TempNoLine & "and Job_LineRev =" & TempNoLineRev
If TempNoLine <> 9999 Then
**m_DataLayer.DvJobItem.RowFilter = TempFilter
...