コード例 #1
0
        private void FillState()
        {
            wrap = new Wrapper();
            //DataTable dt_country = wrap.GetComboData("GETDATA_FOR_COUNTRY");
            DataTable dt_State = wrap.GetComboData("GETDATA_FOR_STATE");

            cmb_State.DataSource = dt_State;
            cmb_State.DisplayMember = "state_name";
            cmb_State.ValueMember = "state_id";

            wrap.CloseConnection();
            wrap = null;
        }
コード例 #2
0
        public void FillCounty()
        {
            wrap = new Wrapper();
            DataTable dt_county = wrap.GetComboData("GETDATA_FOR_COUNTY");

            cmb_County.DataSource = dt_county;
            cmb_County.DisplayMember = "county_name";
            cmb_County.ValueMember = "c_id";

            wrap.CloseConnection();
            wrap = null;
        }
コード例 #3
0
        private void FillCountry()
        {
            wrap = new Wrapper();
            DataTable dt_Country = wrap.GetComboData("GETDATA_FOR_COUNTRY");
            //DataTable dt_State = wrap.GetComboData("GETDATA_FOR_STATE");

            cmb_Country.DataSource = dt_Country;
            cmb_Country.DisplayMember = "country_name";
            cmb_Country.ValueMember = "country_id";
        }
コード例 #4
0
        public void FillBusinessType()
        {
            wrap = new Wrapper();
            //Fill the Business Type data:
            DataTable dt_businesstype = wrap.GetComboData("GETDATA_FOR_BUSINESSTYPE");

            cmb_BusiType.DataSource = dt_businesstype;
            cmb_BusiType.DisplayMember = "business_typename";
            cmb_BusiType.ValueMember = "business_id";

            wrap.CloseConnection();
            wrap = null;
        }