Postada em 22/01/2013 12:39 hs
Já consegui fzr a pesquisa, só tive que mudar algumas coisas no código...confiram...
For i = 0 To DataGrid1.Rows.Count - 1 If DataGrid1.Rows(i).Cells(1).Value = textbox1.Text.ToString And _ DataGrid1.Rows(i).Cells(2).Value = textbox2.Text.ToString And _ DataGrid1.Rows(i).Cells(3).Value = textbox3.Text.ToString Then
Me.DataGrid1.SelectionMode = DataGridViewSelectionMode.FullRowSelect Me.DataGrid1.MinDisplayedScrollingRowIndex = i Me.DataGrid1.Rows(i).Selected = True textbox4.Text = DataGrid1.Rows(i).Cells(5).Value
textbox5.Text = DataGrid1.Rows(i).Cells(6).Value textbox6.Text = DataGrid1.Rows(i).Cells(7).Value textbox7.Text = DataGrid1.Rows(i).Cells(8).Value Else 'textbox4.Text = "?" 'textbox5.Text = "?" 'textbox6.Text = "?" 'textbox7.Text = "?" End If Exit Sub Next
Não foi fácil mais consegui Meu projeto só faltava isto, agora esta completinho...ABRAÇOS
|