The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
All docs
V19.2
19.2
19.1
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.

Use Spreadsheet Documents in Business Objects

  • 2 min to read

This topic describes how to use the SpreadsheetPropertyEditor and ASPxSpreadsheetPropertyEditor to display byte array properties in WinForms and ASP.NET applications. The following images demonstrate these Property Editors assigned to the Document.Data property:

Assign the Spreadsheet Property Editor to a Business Class' Property

In Code

Decorate a business class' property with the EditorAliasAttribute and pass the SpreadsheetPropertyEditor value as the attribute's parameter:

using DevExpress.ExpressApp.Editors;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
// ...
private byte[] data;
[EditorAlias(EditorAliases.SpreadsheetPropertyEditor)] 
public byte[] Data { 
    get { return data; }
    set { SetPropertyValue(nameof(Data), ref data, value); }
}

In the Model Editor

Navigate to the Views | <DetailView> | Items | <PropertyEditor> node and set the PropertyEditorType property to DevExpress.ExpressApp.Office.Win.SpreadsheetPropertyEditor or DevExpress.ExpressApp.Office.Web.ASPxSpreadsheetPropertyEditor.

Edit the Document in a Separate Window

Use the Show in popup context menu command to open the document in a new modal window.

In ASP.NET applications, you can edit the document in full-screen mode.

See Also