Click here to Skip to main content
15,881,204 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using a binding navigator by providing data source in properties.Navigation is working well but add and delete buttons are not working.when i click on add new button this error is shown
Column 'student_name' does not allow nulls.
what should i do for solving this problem.
Posted

1 solution

You need to set AddNewItem and DeleteItem properties of binding navigator.

http://msdn.microsoft.com/en-us/library/system.windows.forms.bindingnavigator_properties.aspx[^]

Regards
Sebastian
 
Share this answer
 
v2
Comments
entiresol 31-Jul-12 5:13am    
@Sebastian Can you guide me how can i set the properties.actually i am a fresh developer and not know to much, I shall be very thankful to you.
Sebastian T Xavier 31-Jul-12 5:20am    
Just go through the link given above, you will get the idea about it. For setting these properties you need to select the binding navigator and click F4.
entiresol 31-Jul-12 5:40am    
thanx
entiresol 31-Jul-12 5:41am    
but delete button is still not working..:-(
Sebastian T Xavier 31-Jul-12 6:06am    
What about add new item; it worked?

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