Example #1
0
        private void Frmogrenci_Load(object sender, EventArgs e)
        {
            dataGridView1.DataSource = ds.GetData();
            baglanti.Open();
            SqlCommand     komut = new SqlCommand("Select * From TblKulupler", baglanti);
            SqlDataAdapter da    = new SqlDataAdapter(komut);
            DataTable      dt    = new DataTable();

            da.Fill(dt);
            comboBox1.DisplayMember = "KulupAd";
            comboBox1.ValueMember   = "KulupID";
            comboBox1.DataSource    = dt;
            baglanti.Close();
        }