Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Load the data from SqlDataReader into the data table.
- dataTable.Load(dataReader);
- // Sets Data Grid View equal to data table
- this.dgvQualReports.DataSource = dataTable;
- //Populates Data Grid View
- dgvQualReports.AutoGenerateColumns = true;
- // BindingSource bindingSource = new BindingSource();
- // bindingSource.DataSource = dataTable;
- // dvgQualReports.DataSource = bindingSource;
- // Close the SqlDataReader.
- dataReader.Close();
- int bs = dvgQualReports.Rows.Count;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement