I program in C#.NET and use the XtraGrid control in my App.
I use MyXtraGrid (customized control) in my project.
Now I need override EmbeddedNavigator_ButtonClick for custom buttons:
- Export to Excel
- Print and etc
But I dont use override methods for EmbeddedNavigator_ButtonClick
The EmbeddedNavigator.CustomButtons property provides access to the collection of custom buttons. You can add all needed buttons into this collection.
To override the Embedded Navigator buttons behavior or implement custom button’s reaction you should handle the NavigatorBase.ButtonClick event. Here is some sample code: