Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
141019 | Nov 19,2018 01:46 PM UTC | Nov 21,2018 09:22 AM UTC | WinForms | 5 |
![]() |
Tags: GridControl |
Panel p = new Panel();
var s = new MemoryStream();
gridControl1.SaveBinary(s);
s.Seek(0, SeekOrigin.Begin);
var grid = new CustomGrid(GridModel.LoadBinary(s));
p.Controls.Add(grid);
s.Close(); |
//Converter to export the contents of the Grid to Excel.
GridExcelConverterControl excelConverter = new GridExcelConverterControl();
//Set converter options to export the Grid with Row Headers and Column Headers
excelConverter.GridToExcel(this.gridControl1.Model, "SampleExcel.xlsx", ConverterOptions.ColumnHeaders | ConverterOptions.RowHeaders); |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.