Ejemplo n.º 1
0
        public static void UpdateRow(DataRow newRow, ref TrackingDataTableStruct carTable)
        {
            int iRowIndex = Find(newRow, carTable);

            if (iRowIndex == -1)
            {
                carTable.Rows.Add(newRow);
            }
            else
            {
                DataRow dr = carTable.Rows[iRowIndex];
                foreach (DataColumn col in carTable.Columns)
                {
                    if (col.Unique != true)
                        dr[col] = newRow[col];
                }
            }
        }
Ejemplo n.º 2
0
        public static void UpdateRow(DataRow newRow, ref TrackingDataTableStruct carTable)
        {
            int iRowIndex = Find(newRow, carTable);

            if (iRowIndex == -1)
            {
                carTable.Rows.Add(newRow);
            }
            else
            {
                DataRow dr = carTable.Rows[iRowIndex];
                foreach (DataColumn col in carTable.Columns)
                {
                    if (col.Unique != true)
                    {
                        dr[col] = newRow[col];
                    }
                }
            }
        }