private void DataLoad() { refDB db = new refDB(); DataSet ds = db.GetAll(); db.Dispose(); dgvRef.DataSource = ds.Tables["ref"].DefaultView; }