public MembersForm() { InitializeComponent(); gridView.OptionsBehavior.AutoPopulateColumns = false; gridMembers.DataSource = subcriberBLL.GetAll(); gridViewBills.OptionsBehavior.AutoPopulateColumns = false; gridBills.DataSource = billBLL.GetAll(); }
private void btnDisplayTable_Click_1(object sender, EventArgs e) { subscriberBLL = new SubscriberBLL(); gridMembers.DataSource = null; if (comboMembers.SelectedIndex == 0) { gridMembers.DataSource = subscriberBLL.GetAll().Where(x => x.IsActive == true); } else if (comboMembers.SelectedIndex == 1) { gridMembers.DataSource = subscriberBLL.Get5LastSubscribers().Where(x => x.IsActive == true); } else if (comboMembers.SelectedIndex == 2) { gridMembers.DataSource = subscriberBLL.Get10LastSubscribers().Where(x => x.IsActive == true); } }
public DashboardForm() { InitializeComponent(); gridMembers.DataSource = subscriberBLL.GetAll(); gridViewMembers.OptionsBehavior.AutoPopulateColumns = false; }