SHARE
TWEET

Untitled

a guest Sep 11th, 2019 107 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SqlDataAdapter mydataAdapter = new SqlDataAdapter();
  2.                 string vSQLRefresh = "SELECT * from dbo.usermaster";
  3.                 mydataAdapter.SelectCommand = new SqlCommand(vSQLRefresh, cnn);
  4.  
  5.                 DataTable table = new DataTable();
  6.                 mydataAdapter.Fill(table);
  7.  
  8.                 BindingSource bSource = new BindingSource();
  9.                 bSource.DataSource = table;
  10.                 dataGridView1.DataSource = bSource;
  11.                 dataGridView1.Refresh();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top