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
Post a Comment