导出Excel

C# GridView直接导出 Excel 代码
.NET

C# GridView直接导出 Excel 代码

130 0

/// <summary>/// 导出Excel/// </summary>/// <param name="obj"></param>public void ExportData(GridView obj){try{string style = "";if (obj.Rows.Count > 0){style = @"<style> .text { mso-number-format:\…