GroupControl.CustomButtonClick Event

Occurs whenever a push button from the GroupControl.CustomHeaderButtons collection is clicked.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v20.1.dll

Declaration

[DXCategory("Action")]
public virtual event BaseButtonEventHandler CustomButtonClick
<DXCategory("Action")>
Public Overridable Event CustomButtonClick As BaseButtonEventHandler

Event Data

The CustomButtonClick event's data class is DevExpress.XtraBars.Docking2010.BaseButtonEventArgs.

Remarks

private void GroupControl1_CustomButtonClick(object sender, DevExpress.XtraBars.Docking2010.BaseButtonEventArgs e)
{
    if (e.Button.Properties.Caption == "Button 1")
    {
        //. . .
    }
}
See Also