简体   繁体   English

每当上一行中的任何单元格被填充时,如何使DataGridView不产生新行?

[英]How can I make a DataGridView not to produce a new row whenever any of the cell in the preceeding row is filled up?

I just want to make the DataGridView to have a new row after filling up the last cell. 我只想让DataGridView在填满最后一个单元格后有一个新行。 Do any of the DataGridview properties have this settings? 是否有任何DataGridview属性具有此设置?

AllowUserToAddRows属性设置为false

dataGridView1.AllowUserToAddRows = false;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 更新 DataGridView 中的单元格,否则创建新行 - Update Cell in DataGridView Else Make New Row 如何将新行添加到由IDataReader填充的表中? - How can I add a new row to a table filled by an IDataReader? 如何在同一个datagridview的单元格单击事件上向datagridview添加新行? - How to add new row to datagridview on the cell click event of the same datagridview? 每当列值等于特定值时,如何隐藏 datagridview 行 - How can I hide datagridview row whenever a column value equals specific value 如何使单元格仅在填充后才能读取? 数据网格视图 C# - How can I make a cell to read only when it has been filled? DataGridView C# C#Datagridview在新行上使必填单元格 - C# Datagridview make mandatory cell on new row 如何在DataGridView中添加新的空行? - How can i add a new empty row in a DataGridView? 在填充当前行之前阻止新行出现在DataGridView中? - Preventing a new row from appearing in a DataGridView before current row is filled in? 如何在填充上面一行的特定单元格之后将新行添加到datagridview? - How to add new row to datagridview only after specific cells of the row above are filled? 如何在行中聚焦单元格以便在DataGridView中添加新记录? - How to focus cell in row for adding new record in DataGridView?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM