Click here to Skip to main content
15,073,507 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a datagridview, when the form is loading and fill the dataset a new blank row is visible and again when I addnew recoed, I use sqldataadapter and bindingsource with binding navigator, how to prevent the blank row to be created, I have disabled datagridview 'enable adding'.

1 solution

just set allowusetoaddrow property to false and that will solve your issue.

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