SHARE
TWEET

Untitled

a guest Jun 20th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Load the data from SqlDataReader into the data table.
  2. dataTable.Load(dataReader);
  3.  
  4. // Sets Data Grid View equal to data table
  5. this.dgvQualReports.DataSource = dataTable;
  6.  
  7. //Populates Data Grid View
  8. dgvQualReports.AutoGenerateColumns = true;
  9.  
  10.  
  11.  
  12.  
  13.  
  14. //   BindingSource bindingSource = new BindingSource();
  15. //  bindingSource.DataSource = dataTable;
  16.  
  17. //   dvgQualReports.DataSource = bindingSource;
  18.  
  19.  
  20.  
  21.  
  22. // Close the SqlDataReader.
  23. dataReader.Close();
  24.  
  25. int bs = dvgQualReports.Rows.Count;
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