DataGridView prevent it from adding a row

FuZion

Well-known member
Joined
Jan 28, 2007
Messages
47
Programming Experience
Beginner
Hello,

I have a datagridview on my form and I'd like to prevent it from adding a row whenever the user edits the last row. I need a button that will add a new row to the datagridview.. is this possible?

Thanks!
 
You can use the task list for the grid and uncheck "Enable Adding", or set property AllowUserToAddRows to False - they have same function. You can still add rows programatically.
 
Back
Top