أين الخطأ في هذا الأمر علماً بأن هذا الأمر حسب علمي للبحث ...
Private Sub BSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BSearch.Click
Dim dr As DataRow
Dim co As Integer = 0
Dim name As String = TSearch.Text
' Try
If name = "" Then
MsgBox("pla. wirte the Computuer Name in this Box", MsgBoxStyle.Critical, "Ammar")
TSearch.Focus()
Else
name = TSearch.Text
Me.DataSet11.Tables("ginformation").DefaultView.RowFilter = "computer_name" & name '(index, 0)
If Me.DataSet11.Tables("ginformation").DefaultView.Count = 0 Then
MsgBox(" Sorry the Computer Name not included in our Data", MsgBoxStyle.Information, "Computer Information Search")
Else
For Each dr In Me.DataSet11.Tables("ginformation").Rows
If String.Compare(dr("computer_name").ToString, name) = 0 Then
Me.BindingContext(DataSet11, "ginformation").Position = Me.BindingContext(DataSet11, "ginformation").Position
Me.Record_ChangePo()
End If
co += 1
Next
End If
End If
' End Try
End Sub
الرجاء مساعدتي بهذا الأمر لأنه من غير عملية البحث أعتبر برنامجي لا يعمل ... ولكم الشكر