Tag : .NET, Win (Windows App), C#, VS 2008 (.NET 3.x)
Date :
2011-12-15 14:22:49
By :
tstctun
View :
1681
Reply :
1
No. 1
Guest
Code (VB.NET)
For i as short = 0 To Me.dgvExrate.Rows.Count - 2
If Me.txtrate.Text = Me.dgvExrate.Rows(i).Cells(0).Value Then
dgvExrate.Rows(dgvExrate.Rows(i).Index).Selected = True
dgvExrate.CurrentCell = dgvExrate.Rows(dgvExrate.Rows(i).Index).Cells(0)
dgvExrate.BeginEdit(True)
exit for
End If
Next