Beispiel #1
0
        public void LoadData5()
        {
            try
            {
                dtmuonsach = new DataTable();
                dtmuonsach.Clear();
                DataSet ds = dbms.LaySach();

                dtmuonsach = ds.Tables[0];
                // Đưa dữ liệu lên DataGridView
                dataGridView5.DataSource = dtmuonsach;
                //laytentacgia.Text = this.dataGridView3.CurrentRow.Cells[1].Value.ToString();
            }

            catch (SqlException)
            {
                MessageBox.Show("Không lấy được nội dung trong table NguoiDung. Lỗi rồi!!!");
            }
        }