Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. SqlDataAdapter cda = new SqlDataAdapter("select Category,Subcategory ,Price from Main m left outer join Subcategory s on m.SubcategoryID= s.[S.ID] join Category c on m.CategoryID= c.[C.ID] WHERE Status = 'ACTIVE' AND NOT EXISTS( SELECT 1 FROM table3 WHERE m.EPC = table3.EPC)", con);
  2. DataTable cdt = new DataTable();
  3. cda.Fill(cdt); BindingSource cbs = new BindingSource();
  4. cbs.DataSource = cdt;
  5. dataGridView2.DataSource = cbs;
  6. cda.Update(cdt);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement