Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 2.4 KB

File metadata and controls

33 lines (21 loc) · 2.4 KB

WinForms Data Grid - Display a custom button within the Filter Panel

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.

WinForms Data Grid - Add a button to the Filter Panel

Implementation Notes

  • 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 the CustomGridViewHandler.OnMouseUp event occurs and fire the Click event.
  • The CustomGridView.UpdateButtonsRects method specifies the distance between custom buttons and their size.

Files to Review

See Also