public void GetAll() { NetSatisContext context = new NetSatisContext(); StokDal stokDal = new StokDal(); gridControl1.DataSource = stokDal.StokListele(context); }
public rptStokDurumu() { InitializeComponent(); NetSatisContext context = new NetSatisContext(); StokDal stokDal = new StokDal(); ObjectDataSource stokDataSource = new ObjectDataSource { DataSource = stokDal.StokListele(context) }; this.DataSource = stokDataSource; colStokKodu.DataBindings.Add("Text", this.DataSource, "StokKodu"); colBarkod.DataBindings.Add("Text", this.DataSource, "Barkod"); colStokAdi.DataBindings.Add("Text", this.DataSource, "StokAdi"); colBirimi.DataBindings.Add("Text", this.DataSource, "Birimi"); colStokGrubu.DataBindings.Add("Text", this.DataSource, "StokGrubu"); colStokAltGrubu.DataBindings.Add("Text", this.DataSource, "StokAltGrubu"); colSatisKdv.DataBindings.Add("Text", this.DataSource, "SatisKdv"); colStokGiris.DataBindings.Add("Text", this.DataSource, "StokGiris"); colStokCikis.DataBindings.Add("Text", this.DataSource, "StokCikis"); colMevcutStok.DataBindings.Add("Text", this.DataSource, "MevcutStok"); }
private void FrmStokSec_Load(object sender, EventArgs e) { gridcontStoklar.DataSource = stokDal.StokListele(context); }