//public bool Save2Excel ( ) //{ // //有checknox列的,只导出那些被选择的行 // if ( _HaveSelectedCheckBox ) // { // return GRID2EXCEL.SaveToExcel ( this , GetSelectCheckBoxLine () ); // } // else // return SaveAll2Excel (); //} public bool SaveAll2Excel () { GRID2EXCEL Excel = new GRID2EXCEL (); return Excel.SaveToExcel ( this ); }
public bool Save2Excel () { //有checknox列的,只导出那些被选择的行 if ( _HaveSelectedCheckBox ) { GRID2EXCEL Excel = new GRID2EXCEL (); return Excel.SaveToExcel ( this , GetSelectCheckBoxLine () ); } else return SaveAll2Excel (); }