gridView1.ExportToXlsx("SampleStock.xlsx");
            if (true)
            {
                DevExpress.XtraEditors.XtraMessageBox.Show("导出成功,请在程序目录中打开SampleStock.xlsx");
            }
            else
            {               
                DevExpress.XtraEditors.XtraMessageBox.Show("导出失败");
               
            }

方法的选择在gridview1.中可选择导出其他类型。

相关文章:

  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
  • 2021-07-25
  • 2021-12-10
  • 2021-12-04
  • 2021-09-13
  • 2021-04-28
猜你喜欢
  • 2021-08-11
  • 2021-08-30
  • 2021-07-28
  • 2021-08-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案