Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dgv.DataSource = myDateTable;
- private static void SelectRowByOrderID(DataGridView dgv, string orderID)
- {
- dgv.Rows
- .OfType<DataGridViewRow>()
- .Where(x => (string)x.Cells["#"].Value == orderID)
- .ToArray<DataGridViewRow>()[0]
- .Selected = true;
- }
Add Comment
Please, Sign In to add comment