Beispiel #1
0
        private void tampilkanDataSiswa()
        {
            string  query = "SELECT * FROM " + tabel_siswa;
            DataSet ds    = koneksi.tampilkanData(query, tabel_siswa);

            dataGridView_Siswa.DataSource = ds;
            dataGridView_Siswa.DataMember = tabel_siswa;
            dataGridView_Siswa.AutoResizeColumns();
            dataGridView_Siswa.Columns[6].DefaultCellStyle.Format = "dd-MM-yyyy";
        }