【问题标题】:How can I make a DataGridView not to produce a new row whenever any of the cell in the preceeding row is filled up?每当前一行中的任何单元格被填满时,如何使 DataGridView 不生成新行?
【发布时间】:2011-01-20 03:03:32
【问题描述】:

我只想让 DataGridView 在填满最后一个单元格后有一个新行。是否有任何 DataGridview 属性具有此设置?

【问题讨论】:

    标签: c# .net winforms user-interface datagridview


    【解决方案1】:

    AllowUserToAddRows 属性设置为 false

    dataGridView1.AllowUserToAddRows = false;
    

    【讨论】:

      猜你喜欢
      • 2010-10-21
      • 1970-01-01
      • 1970-01-01
      • 2018-06-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-03-18
      相关资源
      最近更新 更多