Guest User

Untitled

a guest
Jan 19th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. MyDataGridView.DataSource = getDataTableFromDb();
  2.  
  3. bindingSource1.DataSource = getDataTableFromDb();
  4. MyDataGridView.DataSource = bindingSource1;
  5.  
  6. DataRowView r = bs.Current as DataRowView;
  7. var id = int.Parse(r.Row.ItemArray[0].ToString());
  8.  
  9. int index = bs.Find("CustomerId", 3);
  10. bs.Position = index;
Add Comment
Please, Sign In to add comment