How to add new binidngNavigator
Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=623
Printed Date: 29-Aug-2025 at 5:47pm
Topic: How to add new binidngNavigator
Posted By: bolitto
Subject: How to add new binidngNavigator
Date Posted: 18-Dec-2007 at 1:19pm
Hello, everyone, I'm started in this tool, but i can add new record o new row, because the botton + for add is disable. Help, How I can add new records
|
Replies:
Posted By: pkarsh
Date Posted: 18-Dec-2007 at 5:12pm
There are several different ways you can enable the + button.
Right-click on the + button in the BindingNavigator to bring up the context menu for this button. Click on the "Enabled" selection in this menu.
Right-click on the + button to bring up the context menu as described above. Select "Properties" from this menu (at the bottom) to bring up the Properties sheet for the button. Look at the name of the Properties sheet to be sure you have selected Properties for the + button and not the bindingNavigator. The name should be something like "bindingNavigatorAddNewItem" . Under the Behavior category in the Properties sheet, there is a property called "Enabled". Set that to true.
Alternatively, you can set the Enabled property to true in code. You can add a line of code that reads:
this.bindingNavigatorAddNewItem.Enabled = true;
in your Form class. An example of this, as well as an example of the code to add a new record, can be found in the Tutorial called "Adding and deleting business objects", under the Fundamentals section.
Hope this helps.
Paul Karsh
IdeaBlade Support
|
|