DataTable dt = new DataTable();
dt.Columns.Add(new DataColumn("ValueOne",typeof(string)){AllowDBNull = false});
dt.Columns.Add(new DataColumn("ValueTwo",typeof(string)){AllowDBNull = false});
DataRow row = dt.NewRow();
row["ValueOne"] = "Test1";
if (dt.Rows.CanAdd(row))
{
dt.Rows.Add(row);
}
Is there some way to Check if a Row Can be Added before trying to add the row?