04-12-20, 10:59 PM
(22-12-15, 02:20 AM)اين اكتب هذا الكود كتب :كود :
Dim ri =
From r As DataGridViewRow In DataGridView1.Rows
Where r.Cells(0).Value = TextBox1.Text
Select r.Index
If ri.Count > 0 Then
DataGridView1.ClearSelection()
DataGridView1.Rows(ri(0)).Selected = True
DataGridView1.FirstDisplayedScrollingRowIndex = ri(0)
Return
End If

