private void ExportGridToFile() { if (_activeDataTable == null) { throw new Exception("DataTable can not be extracted from the current gird!"); } DataExport.ExportGridToFile(_activeDataTable); }
private void ExportGridToFile() { DataTable dt = null; DataView view = DataView; if (view != null && !String.IsNullOrEmpty(view.RowFilter)) { dt = view.ToTable(); } else { dt = DataTable; } if (dt == null) { throw new Exception("DataTable can not be extracted from the current gird!"); } DataExport.ExportGridToFile(dt); }
private void exportToFileToolStripMenuItem_Click(object sender, EventArgs e) { DataExport.ExportGridToFile(_dataTbl); }