All docs
V21.2
21.2
21.1
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

SpreadsheetControl.CreateStatusBarManager(SpreadsheetStatusBarItems) Method

Adds a status bar with the specified items to the Spreadsheet control with a Bar UI.

Namespace: DevExpress.XtraSpreadsheet

Assembly: DevExpress.XtraSpreadsheet.v21.2.dll

Declaration

public BarManager CreateStatusBarManager(
    SpreadsheetStatusBarItems statusBarItems
)

Parameters

Name Type Description
statusBarItems SpreadsheetStatusBarItems

Specifies items to display on the status bar.

Returns

Type Description
BarManager

A component that manages the created status bar.

Remarks

Use the CreateStatusBarManager method overloads to add a status bar to a Spreadsheet application with a Bar UI. The SpreadsheetStatusBarItems enumeration members specify items to display on the status bar.

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

public Form1()
{
    InitializeComponent();
    // Create the Spreadsheet's toolbar menu.
    BarManager barManager = spreadsheetControl1.CreateBars();
    // Add a status bar to the Spreadsheet.
    // The status bar is managed by the same BarManager instance that stores the created toolbars.
    spreadsheetControl1.CreateStatusBarManager(SpreadsheetStatusBarItems.All);
    // Display the status bar and toolbars on the Form.
    barManager.Form = this;
}

Use the CreateRibbonStatusBar method to create a status bar for the Spreadsheet control with a Ribbon UI.

Tip

You can also use the CreateStatusBarManager method to add a status bar to a standalone Spreadsheet control that does not have a Ribbon or Bar UI.

// Add a status bar to the Spreadsheet control.
BarManager statusBar = spreadsheetControl1.CreateStatusBarManager(SpreadsheetStatusBarItems.All);
// Display the status bar on the Form.
statusBar.Form = this;
See Also