Print Page | Close Window

DevExpress Grid EmbeddedNavigator

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=849
Printed Date: 11-Jun-2026 at 1:37am


Topic: DevExpress Grid EmbeddedNavigator
Posted By: pucsoftware
Subject: DevExpress Grid EmbeddedNavigator
Date Posted: 20-Jun-2008 at 8:14am
We are using DevExpress 8.1 with Devforce 3.6.2.2. I am using XtraGridBindingManager to bind DevForce objects to a DevExpress Grid. I have the grid set to show the Embedded Navigator. All the buttons are enabled except for the Remove (delete) button in the Navigator and I don't know why. I've created a ButtonClick for the grid and use this when I'm adding records but since the Remove button is not enabled, even when I select a record, I can't Delete a record from the Grid. The XtraGridBindingManager has a property for AllowNew but nothing for Delete. Is there something special I need to do in order to enable the Remove button in the EmbeddedNavigator. I've looked for any property for this in the Grid itself and can't find any and I've checked that the Remove button is enabled in the properties. So, I'm either missing something simple or there's got to be something wrong. Any ideas?
 



Replies:
Posted By: davidklitzke
Date Posted: 23-Jun-2008 at 3:25pm

Even though the "Delete" button may noy be initially enabled, you should be able to enable it by running the DevEx Designer, selecting the Feature Browser, and checking the checkbox for "UseEmbeddedNavigator" Property.  Once you do this, you should have access to the EmbeddedNavigator Buttons.  Sekect the "Remove" button and set "Enabled" to "True".

You will probably want a Click Handler to handle Click Events for the Embedded Navigator buttons.
 
I used this code to set up the Click Handler.

this.gridControl1.EmbeddedNavigator.ButtonClick += new DevExpress.XtraEditors.NavigatorButtonClickEventHandler(EmbeddedNavigator_ButtonClick);

This is the default Click Handler I created:

void EmbeddedNavigator_ButtonClick(object sender, DevExpress.XtraEditors.NavigatorButtonClickEventArgs e) {

throw new Exception("The method or operation is not implemented.");

}

If you look at e, you will see that it contains a Button which has a property called ButtonTYpe.
 
For more details see:
 
http://community.devexpress.com/forums/t/64546.aspx - http://community.devexpress.com/forums/t/64546.aspx
 


Posted By: pucsoftware
Date Posted: 24-Jun-2008 at 6:18am
I know how to use the embedded navigator. I have all the properties set that  you mentioned. That is what is so odd. There's no reason that I can tell that the Remove button would be disabled. Since this doesn't seem famaliar to you, the problem is probably with the Grid and not anything the DevForce binding manager would be doing. I will send in a request to DevExpress that details the problem, see if they can come up with something. If I can't find a solution I'll post again and try and send you my project.


Posted By: davidklitzke
Date Posted: 24-Jun-2008 at 3:56pm
I think that that is a good idea.  There is obviously something strange going on in your environment.  I don't see the problem, and I am not aware of any other customers who have reported this problem.


Posted By: pucsoftware
Date Posted: 27-Jun-2008 at 7:05am
I sent an email with an attachment of my project to support a few days ago. Do you know if you received it? If so, have you had a chance to look at it? Any ideas?
 
 



Print Page | Close Window