public static void ExportDataGridTableToExcel(DataGridView grid, string ExcelTitle)
{
Microsoft.Office.Interop.Excel.Application xlApp = new Microsoft.Office.Interop.Excel.ApplicationClass();
Microsoft.Office.Interop.Excel.Range range = xlApp.get_Range(xlApp.Cells[1, 1], xlApp.Cells[1, grid.Columns.Count]);
........................................
}
其中这个方法里的这段代码什么意思啊?
Microsoft.Office.Interop.Excel.Range range = xlApp.get_Range(xlApp.Cells[1, 1], xlApp.Cells[1, grid.Columns.Count]);
特别是()中的两个Cells[ ] 怎么解释啊? xlApp.Cells[1, 1], xlApp.Cells[1, grid.Columns.Count]