Click here to Skip to main content
15,906,816 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to not show blank dynamic rows in c#
Posted
Comments
Animesh Datta 27-Mar-14 3:16am    
go to datagridview property windows and make "AllowUserToAddRow" is false .
alanmaster 27-Mar-14 3:33am    
If u don't know the answer than please don't write anyhing. First test it on your own and then reply.
Animesh Datta 27-Mar-14 3:49am    
sorry for my wrong answer . please explain your question briefly .

C#
AutoGenerateColumns="False"
 
Share this answer
 
Before actually displaying the DataGridView[^], iterate over all its Rows[^]. Set each empty Row[^] to not being Visible[^].
 
Share this answer
 

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