private void DataGrid_QueryResult_ExportAllClick(object sender, EventArgs e) { if (lastQueryVM == null || this.DataGrid_QueryResult.TotalCount <= 0) { Window.Alert(ResCommon.Message_NoData2Export); return; } ColumnSet col = new ColumnSet(this.DataGrid_QueryResult); col.Remove("SapImportedStatusDesc"); col.Insert(2, "Status", ResInvoiceInputQuery.Grid_Status, 10) .SetWidth("VendorName", 40); facade.ExportExcelFile(lastQueryVM, new ColumnSet[] { col }); }