Hi,
I would like to loop thru datatable.rows and check for any empty row (certain fields are empty). If any, rejectchange.
I try the following code, it complaint "collection was modified". Any other wy to do this?
foreach(DataRow loRow in DataTable.Rows)
{
if (loRow["MyField"] = string.Empty)
{
loRow.RejectChanges();
}
}
Please advice.
Thank you
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...