#region  資料綁定ComboBox
        /// <summary>
        /// 對ComboBox進行資料庫數據綁定
        /// </summary>
        /// <param name="str_Sqlstr">SQL字串</param>
        /// <param name="str_Table">資料表名稱</param>
        /// <param name="str_tbMember">資料表中欄位名</param>
        /// <param name="cbox">ComboBox 物件</param>
        public void cboxBind(string str_Sqlstr, string str_Table, string str_tbMember, ComboBox cbox)
        {
            DataSet myds = datacon.getds(str_Sqlstr, str_Table);
            cbox.DataSource = myds.Tables[str_Table];
            cbox.DisplayMember = str_tbMember;
        }
        #endregion

arrow
arrow
    全站熱搜

    Ching 發表在 痞客邦 留言(0) 人氣()