Пример #1
0
 private void BinddrpCK()
 {
     try
     {
         DataSet ds = QTCKQuery.GetCKID();
         if (ds != null)
         {
             this.drpCK.DataSource     = ds;
             this.drpCK.DataTextField  = "CKID";
             this.drpCK.ToolTip        = "请选择仓库类型";
             this.drpCK.DataValueField = "CKID";
             this.drpCK.DataBind();
         }
         this.drpCK.Items.Insert(0, "请选择");
     }
     catch
     {
         this.PrintfError("访问数据出错!");
         return;
     }
 }