Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SpreadsheetControl.CreateRibbonStatusBar(RibbonControl) Method

Creates a RibbonStatusBar with all Spreadsheet-related items and binds it to the specified RibbonControl.

Namespace: DevExpress.XtraSpreadsheet

Assembly: DevExpress.XtraSpreadsheet.v24.2.dll

NuGet Package: DevExpress.Win.Spreadsheet

#Declaration

public RibbonStatusBar CreateRibbonStatusBar(
    RibbonControl ribbon
)

#Parameters

Name Type Description
ribbon RibbonControl

Specifies a Ribbon control to which the status bar should be bound.

#Returns

Type Description
RibbonStatusBar

The created status bar.

#Remarks

Use the CreateRibbonStatusBar method overloads to add a status bar to a Spreadsheet application with a Ribbon UI.

using DevExpress.XtraBars.Ribbon;
using DevExpress.XtraSpreadsheet;
// ...

public Form1()
{
    InitializeComponent();
    // Add a ribbon to the Spreadsheet control.
    RibbonControl ribbon = spreadsheetControl1.CreateRibbon();
    // Create a status bar and bind it to the Ribbon control.
    RibbonStatusBar statusBar = spreadsheetControl1.CreateRibbonStatusBar(ribbon);

    // Add the ribbon and status bar to the Form.
    this.Controls.Add(ribbon);
    this.Controls.Add(statusBar);
}

Use the CreateStatusBarManager method to create a status bar for a standalone Spreadsheet control or Spreadsheet application with a Bar UI.

See Also