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

c++ - Linked List error when inserting for the last time -

c++ - Issues with OpenGL referencing when compiling in Ubuntu terminal -

java - A* catch if unpossible to reach a point -