简体   繁体   中英

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. Do any of the DataGridview properties have this settings?

AllowUserToAddRows属性设置为false

dataGridView1.AllowUserToAddRows = false;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM