Skip to content

DevExpress-Examples/gridview-how-to-add-a-custom-button-to-the-filterpanel-t375271

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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