예제 #1
0
        public static ExcelDataSet.CellsRow GetDataRow(int cellId)
        {
            try
            {
                ExcelDataSet.CellsDataTable table = GetDataTable();

                foreach (ExcelDataSet.CellsRow row in table.Select(table.IdColumn.ColumnName + " = " + cellId.ToString()))
                {
                    return(row);
                }

                return(null);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
예제 #2
0
        public static bool Update(ExcelDataSet.CellsDataTable table)
        {
            try
            {
                CellsTableAdapter tableAdapter = new CellsTableAdapter();

                tableAdapter.Update(table);
                return(true);
            }
            catch (OleDbException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
예제 #3
0
 public C_CellTable()
 {
     DataTable    = new ExcelDataSet.CellsDataTable();
     TableAdapter = new CellsTableAdapter();
 }