GridExcelSettings
Class holding settings associated with the RadGrid exporting to Excel functionality.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
[TypeConverter(typeof(ExpandableObjectConverter))]
public class GridExcelSettings : ObjectWithState
Inheritance: objectObjectWithStateGridExcelSettings
Inherited Members
Constructors
Properties
Determines whether RadGrid will auto-fit the columns' width based on the length of the content. False by default. XLSX format only.
public ExportAutoFitWidthMode AutoFitColumnWidth { get; set; }
Determines whether RadGrid will fit the image within the boundaries of its parent cell (true) or will leave it with the default dimensions (false). False by default. BIFF only.
public bool AutoFitImages { get; set; }
Determines the default header cell alignment when exporting to Excel. Default value is 'NotSet'.
public HorizontalAlign DefaultCellAlignment { get; set; }
Gets or sets the file extension for RadGrid Excel export.
public string FileExtension { get; set; }
The file extension for RadGrid Excel export.
Gets or sets in which format the Excel data will be exported.
public GridExcelExportFormat Format { get; set; }
The Excel format type.
A string specifying the name of the worksheet that will be created. If none is set, the ExportSettings.FileName will be used for a Worksheet name. Not applicable for ExcelFormat.Html.
public string WorksheetName { get; set; }