JJ
Jisha Joy
Syncfusion Team
August 20, 2009 09:36 AM UTC
Hi Stephen,
Thank you for posting query to us.
Issue 1:
The desired behavior can be achieved by setting the ActivateCurrentCellBehavior property to GridCellActivateAction.SelectAll. See the code:
this.gridControl1.ActivateCurrentCellBehavior = Syncfusion.Windows.Forms.Grid.GridCellActivateAction.SelectAll;
Issue 2:
The Essential Grid control has in-built support for Excel Export. The class GridExcelConverterControl provides support for exporting data from a GridControl or GridDataBoundGrid control into an Excel spreadsheet. The GridToExcel method should be used to export the grid to an excel sheet. Here is the code snippet that is used to convert the contents of the GridControl to Excel.
[C#]
Syncfusion.GridExcelConverter.GridExcelConverterControl gecc = new Syncfusion.GridExcelConverter.GridExcelConverterControl();
gecc.GridToExcel(this.gridControl1.Model,@"C:\MyGC.xls");
For more details see the following sample from our sample browser:
GridSamples ---->Export ---->GC XLS Export Demo
Regards,
Jisha