Example #1
0
        private void salonCek()
        {
            DataTable dtSalon = new DataTable();

            dtSalon = BLLADMIN.getDataTableSalon();

            cmbSalon.DataSource    = dtSalon;
            cmbSalon.DisplayMember = dtSalon.Columns["SalonAd"].ToString();
            cmbSalon.ValueMember   = dtSalon.Columns["SalonID"].ToString();
        }
Example #2
0
        private void salonCek()
        {
            DataTable dt = new DataTable();

            dt = BLLADMIN.getDataTableSalon();
            dt.Columns["SalonAd"].ColumnName  = "Salon Adı";
            dt.Columns["Kapasite"].ColumnName = "Salon Kapasitesi";

            dataGridViewSalon.DataSource = dt;
            dataGridViewSalon.Columns["SalonID"].Visible = false;
            dataGridViewSalon.Columns["Salon Adı"].Width = 400;
            dataGridViewSalon.Columns["Salon Kapasitesi"].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;

            satirRenklendir(dataGridViewSalon);
        }