Пример #1
0
 private void Btn_Export_Click(object sender, EventArgs e)
 {
     #region 导出Excel
     try
     {
         GridViewHelper.ExportToXlsx(this.gridControl1);
     }
     catch (Exception ex)
     {
         MsgBox.ShowInfoMsg(ex.ToString());
     }
     #endregion
 }
Пример #2
0
        //------------------------------------------------------------

        #region  钮事件

        private void btn_Export_Click(object sender, EventArgs e)
        {
            #region 导出
            try
            {
                GridViewHelper.ExportToXlsx(gridCtrl);
            }
            catch (Exception ex)
            {
                MsgBox.ShowInfoMsg(ex.Message);
            }

            #endregion
        }
Пример #3
0
 private void ExportExcel(object sender, EventArgs e)
 {
     #region 导出Excel
     GridViewHelper.ExportToXlsx(gridControl1);
     #endregion
 }
Пример #4
0
 private void BtnExport_Click(object sender, EventArgs e)
 {
     GridViewHelper.ExportToXlsx(gridControl1);
 }