public void bind(params string[] dependants) { var q = Repository.getList(); FilterDropDownList.Items.Clear(); // cheat!!!! foreach (var item in q) { FilterDropDownList.Items.Add(item); } FilterDropDownList.DataBind(); }
public virtual void bind(params string[] dependants) { var q = Repository.getList(dependants); clear(); foreach (var item in q) { FilterDropDownList.Items.Add(item); } FilterDropDownList.DataBind(); }
public override void bind(params string[] dependants) { _ddList = Repository3.getList(dependants); clear(); foreach (var item in _ddList) { FilterDropDownList.Items.Add(item.Name); } FilterDropDownList.DataBind(); SetFeedback(); }
public override void rebind(int selectedIndex, params string[] dependants) { var q = Repository.getList(dependants); clear(); foreach (var item in q) { FilterDropDownList.Items.Add(item); } FilterDropDownList.SelectedIndex = selectedIndex; FilterDropDownList.DataBind(); SetFeedback(); }
private void LoadParmeters() { if (string.IsNullOrWhiteSpace(this.GetSchema())) { return; } if (string.IsNullOrWhiteSpace(this.GetView())) { return; } using (System.Data.DataTable table = MixERP.Net.BusinessLayer.Helpers.TableHelper.GetTable(this.GetSchema(), this.GetView(), "")) { FilterDropDownList.DataSource = table; FilterDropDownList.DataBind(); } }