29-08-15, 05:57 PM
كود :
Dim searchValue As String = textBox1.Text
dgvProjects.SelectionMode = DataGridViewSelectionMode.FullRowSelect
Try
For Each row As DataGridViewRow In dgvProjects.Rows
If row.Cells(2).Value.ToString().Equals(searchValue) Then
row.Selected = True
Exit For
End If
Next
Catch exc As Exception
MessageBox.Show(exc.Message)
End Tryجرب ده
سبحان الله والحمدلله ولا إله إلا الله والله أكبر
اللهم اغْفِرْ لِلمؤمنين والمؤمنات والمسلمين والمسلمات الأحياء منهم والأموات


