コード例 #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);
 }