private void SiparisDetayForm_Load(object sender, EventArgs e) { comboSip.SelectedValue = 1; comboSip.DataSource = siparisOrm.Listele(); comboSip.DisplayMember = "Id"; comboSip.ValueMember = "Id"; //comboSip.SelectedValue = 1; listUrun.DataSource = uorm.Listele(); listUrun.DisplayMember = "Adi"; listUrun.ValueMember = "Id"; listUrun.SelectedValue = 1; goster(); }
void goster() { dataGridView1.DataSource = sORM.Listele(); dataGridView1.Columns["OdemeYapildiMi"].Visible = false; dataGridView1.Columns["OnaylandiMi"].Visible = false; dataGridView1.Columns["HazirMi"].Visible = false; dataGridView1.Columns["Aktif"].Visible = false; dataGridView1.Columns["Id"].Visible = false; dataGridView1.Columns["MusteriId"].Visible = false; //dataGridView1.Columns["MüteriIid"].Visible = false; dataGridView1.Columns["Id1"].Visible = false; dataGridView1.Columns["Mail"].Visible = false; dataGridView1.Columns["TelNo"].Visible = false; dataGridView1.Columns["Aktif1"].Visible = false; dataGridView1.Columns["Tckn"].Visible = false; dataGridView1.Columns["FirmaId"].Visible = false; }
private void UretimForm_Load(object sender, EventArgs e) { dataGridView1.DataSource = sorm.Listele(); }