示例#1
0
        private void filmCek()
        {
            DataTable dtFilm = new DataTable();

            dtFilm = BLLADMIN.getDataTableFilm();


            cmbFilm.DataSource    = dtFilm;
            cmbFilm.DisplayMember = dtFilm.Columns["FilmAd"].ToString();
            cmbFilm.ValueMember   = dtFilm.Columns["FilmID"].ToString();
        }
示例#2
0
        private void filmCek()
        {
            DataTable dt = new DataTable();

            dt = BLLADMIN.getDataTableFilm();
            dt.Columns["FilmAd"].ColumnName     = "Film Ad";
            dt.Columns["Yonetmen"].ColumnName   = "Yönetmen";
            dt.Columns["Sure"].ColumnName       = "Filmin Süresi";
            dt.Columns["YayinTarih"].ColumnName = "Yayın Tarihi";
            dt.Columns["Kategori"].ColumnName   = "Filmin Kategorisi";
            dt.Columns["Aktif"].ColumnName      = "Aktif";

            dataGridViewFilm.DataSource = dt;
            dataGridViewFilm.Columns["FilmID"].Visible                 = false;
            dataGridViewFilm.Columns["Film Ad"].Width                  = 150;
            dataGridViewFilm.Columns["Yönetmen"].Width                 = 150;
            dataGridViewFilm.Columns["Filmin Süresi"].Width            = 125;
            dataGridViewFilm.Columns["Yayın Tarihi"].Width             = 125;
            dataGridViewFilm.Columns["Aktif"].Width                    = 50;
            dataGridViewFilm.Columns["Filmin Kategorisi"].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;

            satirRenklendir(dataGridViewFilm);
        }