Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  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;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement