Click here to Skip to main content
15,886,742 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi friends

I have datagridview,when i add data to gridview then it automatically add extra final row.I want to disable this row. how can do it.

Thanks for advance
Posted
Comments
Sandeep Mewara 18-Feb-13 11:43am    
i add data to gridview then it automatically add extra final row
Elaborate.

1 solution

set DatagridView.AllowUserToAddRows[^] property to false. You can set this value to false in designer or in your contructor.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 18-Feb-13 18:36pm    
Ha-ha, a 5. OP probably needs one more link: how to RTFM (which means "Read The Following Manual", of course :-).
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900