17 protected void StartDateTextBox_TextChanged(object sender, EventArgs e)
18 {
19 this.DateRangeChanged();
20 }
21 protected void EndDateTextBox_TextChanged(object sender, EventArgs e)
22 {
23 this.DateRangeChanged();
24 }
25 private void DateRangeChanged()
26 {
27 this.LoadOrdersDataSet();
28 ListControl[] la = { this.lbParentBroker, this.lbClient, this.lbAccounts };
29 this.ResetRebindControls(la);
30 }
31 protected void lbParentBroker_SelectedIndexChanged(object sender, EventArgs e)
32 {
33 ListControl[] la = { this.lbClient, this.lbAccounts };
34 this.ResetRebindControls(la);
35 }
36 protected void lbClient_SelectedIndexChanged(object sender, EventArgs e)
37 {
38 ListControl[] la = { this.lbAccounts };
39 this.ResetRebindControls(la);
40 }
41 protected void lbAccounts_SelectedIndexChanged(object sender, EventArgs e)
42 {
43 ListControl[] la = { };
44 this.ResetRebindControls(la);
45 }
46 private void ResetRebindControls(ListControl[] lca)
47 {
48 this.SetVisiblePanel(PanelType.None);
49 foreach (ListControl lc in lca)
50 lc.SelectedIndex = -1;
51 this.gvOrders.DataBind();
52 foreach (ListControl lc in lca)
53 lc.DataBind();
54 }
No comments:
Post a Comment