Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void FindRow(string Name)
- {
- foreach (DataGridViewRow Item in DataGridView1.Rows())
- {
- if (Item.Cells(0).Value == Name)
- {
- DataGridView1.ClearSelection();
- Item.Selected = true;
- DataGridView1.FirstDisplayedScrollingRowIndex = Item.Index;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment