public static bool Update(ExcelDataSet.WorksheetsRow row) { try { WorksheetsTableAdapter adapter = new WorksheetsTableAdapter(); adapter.Update(row); return(true); } catch { throw; } }
public static bool Update(ExcelDataSet.WorksheetsDataTable table) { try { WorksheetsTableAdapter tableAdapter = new WorksheetsTableAdapter(); tableAdapter.Update(table); return(true); } catch (OleDbException ex) { throw ex; } catch (Exception ex) { throw ex; } }