zoukankan      html  css  js  c++  java
  • Add columns and Update columns for datatable

    //Detail Table
      public static void AddColumns(ref DataTable table)
      {
       table.Columns.Add("BusinessType",typeof(string));
       table.Columns.Add("BusinessUnit",typeof(string));
       table.Columns.Add("SourceCode",typeof(string));
       table.Columns.Add("UserName",typeof(string));
       table.Columns.Add("SONO",typeof(string));
       table.Columns.Add("CustomerCode_Market",typeof(string));
       table.Columns.Add("Customer_Plantid",typeof(string));
       table.Columns.Add("InvoiceNo",typeof(string));
       table.Columns.Add("OCNO_PLNo",typeof(string));
       table.Columns.Add("ItemNo",typeof(string));   
       table.Columns.Add("PCS",typeof(string));
       table.Columns.Add("CTNS",typeof(string));
       table.Columns.Add("CBM",typeof(string));
       table.Columns.Add("KGS",typeof(string));
       table.Columns.Add("ClosingDate",typeof(string));
       table.Columns.Add("JobNO",typeof(string));
       table.Columns.Add("DestinationID",typeof(string));
       table.Columns.Add("Status",typeof(string));
       

      }

      public static void updColumns(ref DataTable table)
      {
       table.Columns.Add("BusinessType",typeof(string));
       table.Columns.Add("BusinessUnit",typeof(string));
       table.Columns.Add("SourceCode",typeof(string));
       table.Columns.Add("UserName",typeof(string));
       table.Columns.Add("SONO",typeof(string));
       table.Columns.Add("CustomerCode_Market",typeof(string));
       table.Columns.Add("Customer_Plantid",typeof(string));
       table.Columns.Add("InvoiceNo",typeof(string));
       table.Columns.Add("OCNO_PLNo",typeof(string));
       table.Columns.Add("ItemNo",typeof(string));   
       table.Columns.Add("PCS",typeof(string));
       table.Columns.Add("CTNS",typeof(string));
       table.Columns.Add("CBM",typeof(string));
       table.Columns.Add("KGS",typeof(string));
       table.Columns.Add("ClosingDate",typeof(string));
       table.Columns.Add("JobNO",typeof(string));
       table.Columns.Add("DestinationID",typeof(string));
       table.Columns.Add("FID",typeof(string));
       table.Columns.Add("Status",typeof(string));

      }

  • 相关阅读:
    去除 CSDN “官方免费去广告 + 万能工具”
    github 搜索技巧常用
    Python 使用 __doc__ 查看文档
    油猴脚本编写自己的脚本来去除知乎 "我们检测到你可能使用了 AdBlock 或 Adblock Plus"
    Unity 中的 C# Instantiate() 方法解析
    《流畅的 Python 》第 2 章笔记
    html 中 a 标签中 href 的路径相关问题
    VScode 复制代码到博客园编辑器自动带上代码标签问题
    Vue在Ubuntu上的部署
    在ubuntu上编译方式安装nginx
  • 原文地址:https://www.cnblogs.com/zhangchenliang/p/1793379.html
Copyright © 2011-2022 走看看