Click here to Skip to main content
16,018,114 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In directly adding row to a datagridview,
when i start typing cells a pencil shown in current row for editing state and after this row
new row by * show for adding another row.
how to disable adding new row when edit last row?
Posted

1 solution

Have you tried to set "AllowUserToAddRows" to false in the datagridview properties?

This should work for both WinForms and WPF.
 
Share this answer
 
Comments
Hekmat90 12-Aug-12 22:49pm    
if Set AllowUserToAddRows to false user can't adding new record
i want when i adding new row the * that show to add another row disable.

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