zoukankan      html  css  js  c++  java
  • DataGridView中添加一行时自动生成序列行,未实现

         dataGridView1.DataSource=DAL.SqlHelper.ExcuteDataTable(sqlStr);
                //----------------------------DataGridView添加一行时自动生成序列行,未实现
               int count = dataGridView1.Columns.GetColumnCount(DataGridViewElementStates.Displayed);
                int linecount = dataGridView1.RowCount-1;
                //dataGridView1["Column1", 3].Value = 444;
                for (int i = 0; i < 3; i++)
                {
                    dataGridView1["Column1", i].Value = 555;
                }
                //dataGridView1["PCID", 4].Value = 333;
                 Console.WriteLine(linecount + "-----" + count);
                //-----------------------------------------

  • 相关阅读:
    Light oj 1197
    UVA 11426 GCD
    Light oj 1236
    Light oj 1138
    Light oj 1214-Large Division (同余定理)
    Light oj 1234
    HDU
    ZOJ 3469 Food Delivery(* 区间DP 总结)
    二分查找整理
    zoj 3965 Binary Tree Restoring(* dfs)
  • 原文地址:https://www.cnblogs.com/xxiaoye/p/2961292.html
Copyright © 2011-2022 走看看