c# - Add new row at bottom of datagridview in Winform -


i have datagridview in winform application. when click on add button want blank row inserted @ bottom of datagridview.

i tried one:

datagridview1.rows.add(row); 

but blank row inserted @ top not @ bottom. there way insert @ bottom?

you can use insert method:

datagridview1.rows.insert(datagridview1.rows.count-1, row); 

Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -