Datagrid view deleting the last row
while am trying to insert a row in datagridview, 2 new rows are inserted.how can i remove the last one row ie,additionally added row from my data grid view..please help..
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

faraz ali5 reputationPosted May 2, 2013, 10:40 PM EDT
you should use this
allowusertoaddrow=false
http://codingresolved.com/discussion/426/hide-last-empty-row-of-datagridview/p1
http://codingresolved.com/discussion/289/how-to-delete-row-from-datagridview-in-c/p1
Ravi ShekharRank #673 · 3.6K reputationPosted May 3, 2013, 1:27 AM EDT
regards
ravi
faraz ali5 reputationPosted May 3, 2013, 2:48 AM EDT
Gridview1.AllowusertoAddRow=False;
you dont need to do any thing it will automatically hide last empty row from grid.