private void ConvertToRowError(int rowIndex, Hashtable rowErrors, Hashtable colErrors)
{
Debug.Assert(Rows.Count > rowIndex);
Debug.Assert(rowErrors != null);
Debug.Assert(colErrors != null);
DataRow row = Rows[rowIndex];
if (rowErrors.ContainsKey(rowIndex))
{
row.RowError = (string)rowErrors[rowIndex];
}
if (colErrors.ContainsKey(rowIndex))
{
ArrayList list = (ArrayList)colErrors[rowIndex];
int[] columnsInError = (int[])list[0];
string[] columnErrors = (string[])list[1];
Debug.Assert(columnsInError.Length == columnErrors.Length);
for (int i = 0; i < columnsInError.Length; i++)
{
row.SetColumnError(columnsInError[i], columnErrors[i]);
}
}
}