Ejemplo n.º 1
0
        private void BinddropDownLists()
        {
            PricingStatus objstatus = new PricingStatus();
            objstatus.LoadAll();
            ui_drpStatus.DataSource = objstatus.DefaultView;
            ui_drpStatus.DataTextField = PricingStatus.ColumnNames.Status;
            ui_drpStatus.DataValueField = PricingStatus.ColumnNames.PricingStatusID;
            ui_drpStatus.DataBind();
            ListItem item_status = new ListItem("-- All Status -- ", "-1");
            ui_drpStatus.Items.Insert(0, item_status);

            Registeration_Committee_Type objCommitteType = new Registeration_Committee_Type();
            objCommitteType.LoadAll();
            ui_drpCommitteeType.DataSource = objCommitteType.DefaultView;
            ui_drpCommitteeType.DataTextField = Registeration_Committee_Type.ColumnNames.CommitteType;
            ui_drpCommitteeType.DataValueField = Registeration_Committee_Type.ColumnNames.ID;
            ui_drpCommitteeType.DataBind();
            ListItem item_CommitteeTypes = new ListItem("-- All Types -- ", "-1");
            ui_drpCommitteeType.Items.Insert(0, item_CommitteeTypes);
        }
Ejemplo n.º 2
0
 private void BindStatus()
 {
     PricingStatus objCompany = new PricingStatus();
     objCompany.LoadAll();
     ui_drpStatus.DataSource = objCompany.DefaultView;
     ui_drpStatus.DataTextField = PricingStatus.ColumnNames.Status;
     ui_drpStatus.DataValueField = PricingStatus.ColumnNames.PricingStatusID;
     ui_drpStatus.DataBind();
     ListItem item_status = new ListItem("-- All Status -- ", "-1");
     ui_drpStatus.Items.Insert(0, item_status);
 }