private void BindDataGridView() { BusTypeController busTypeController = new BusTypeController(); BusTypeCollections busTypeCollections = busTypeController.SelectList(); this.dgvBusType.AutoGenerateColumns = false; this.dgvBusType.DataSource = busTypeCollections; }
private void BusTypeReport_Load(object sender, EventArgs e) { BusTypeController Controller = new BusTypeController(); rpvBusType.LocalReport.DataSources.Clear(); ReportDataSource rds = new ReportDataSource(); rds.Name = "BusTypeDataSet_BusTypeDataTable"; rds.Value = Controller.SelectList(); this.rpvBusType.LocalReport.DataSources.Add(rds); rpvBusType.ZoomMode = ZoomMode.Percent; this.rpvBusType.RefreshReport(); }
private void BindBusType() { BusTypeController busTypeController = new BusTypeController(); BusTypeCollections busTypeCollections = busTypeController.SelectList(); BusTypeInfo info = new BusTypeInfo(); info.Description = " - Select One - "; info.BusTypeID = null; busTypeCollections.Insert(0, info); this.cboBusType.DisplayMember = "Description"; this.cboBusType.ValueMember = "BusTypeID"; this.cboBusType.DataSource = busTypeCollections; }