Пример #1
0
        private void ExportGridToFile()
        {
            if (_activeDataTable == null)
            {
                throw new Exception("DataTable can not be extracted from the current gird!");
            }

            DataExport.ExportGridToFile(_activeDataTable);
        }
Пример #2
0
        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);
        }
Пример #3
0
 private void exportToFileToolStripMenuItem_Click(object sender, EventArgs e)
 {
   DataExport.ExportGridToFile(_dataTbl);
 }