DataTable dtBlogs = new DataTable(); int i = 0; foreach (DataRow row in dtBlogs.Rows) { if (i > 4) // IF Condition as per your requirement row.Delete(); i++; } dtBlogs.AcceptChanges();
DataTable dtBlogs = new DataTable(); int i = 0; foreach (DataRow row in dtBlogs.Rows) { if (i > 4) // IF Condition as per your requirement row.Delete(); i++; } dtBlogs.AcceptChanges();
Post Comments(0)