int numberOfRecords = 0; foreach (DataRow row in dtFoo.Rows) { if (row["IsActive"].ToString() == "Y") { numberOfRecords++; } } ...
確定! 回上一頁