SyntaxFix
Write A Post
Hire A Developer
Questions
Here's a one-liner using LINQ and avoiding any run-time evaluation of select strings:
someDataTable.Rows.Cast<DataRow>().Where( r => r.ItemArray[0] == someValue).ToList().ForEach(r => r.Delete());