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..
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
faraz aliPosted May 3, 2013, 6:48 AM
Gridview1.AllowusertoAddRow=False;
you dont need to do any thing it will automatically hide last empty row from grid.
Ravi ShekharPosted May 3, 2013, 5:27 AM
regards
ravi
faraz aliPosted May 3, 2013, 2:40 AM
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