Home - Forums-.NET - FlyGrid.Net (Windows Forms) - using the navigation bar

FlyGrid.Net (Windows Forms)

.NET Datagrid - Fast, highly customizable, industry standards .NET data grid control for WinForms

This forum related to following products: FlyGrid.Net

using the navigation bar
Link Posted: 04-Nov-2005 03:42
Hi,
How can I detect a click on a particular button of the navigation bar, ie. how can I know which button has been clicked?
Also, how can I remove some button from the navigation bar, eg. don't show delete button, or show only navigation buttons.

I've tried to look at the sample, but I gave up because I can't open them with VS2003, and with VS2005 beta 2 the list of errors is countless (I'm doing vb.net)

Thanks
Link Posted: 04-Nov-2005 05:24
Use FlyGrid.NavBarButtonClick:
[Vb.Net]
Private Sub InitGrid(ByVal flyGrid as FlyGrid)
  '..... some intitialization code
  ' connect to NavBarButtonClick event
  AddHandler flyGrid.NavBarButtonClick, AddressOf Me.NavBarButtonClick
End Sub

Private Sub NavBarButtonClick(ByVal sender As System.Object, ByVal e As System.EventArgs)
  Dim be As ButtonClickArgs = CType(e, ButtonClickArgs)
  System.Diagnostics.Debug.WriteLine("Navigation bar button has been clicked, Button: " + be.Button.ToString())
End Sub
Link Posted: 04-Nov-2005 05:25
Thanks. so that is to access button.
Now how can I prevent display of such or such button?
Link Posted: 04-Nov-2005 05:44
Unfortunately. you can't prevent displaying some of the buttons.
Please describe your problem more detaillly, may be we can find solution.
Link Posted: 04-Nov-2005 06:19
Nevermind... i was just wondering if enabling/disabling buttons was possible or not.
thanks