Important
This example uses internal APIs that may change in newer versions.
This example demonstrates how to display custom buttons within the Grid control's Filter Panel. The example creates a custom grid control, draws custom buttons within its Filter Panel, and implements the click functionality for custom buttons.
- To raise the event when the mouse button is released, update the
CustomGridView.UpdateButtonState
method. For example, pass a parameter into this method to indicate that theCustomGridViewHandler.OnMouseUp
event occurs and fire theClick
event. - The
CustomGridView.UpdateButtonsRects
method specifies the distance between custom buttons and their size.
- CustomGrid.cs (VB: CustomGrid.vb)
- Form1.cs (VB: Form1.vb)