List<DataRow> toDelete = new List<DataRow>();
foreach (DataRow dr in dt_kimaylmt.Rows)
{
if (dr["DepartmentId"].ToString() == "" || dr["FleetId"].ToString().Length == 0)
{
toDelete.Add(dr);
}
}
foreach (DataRow dr in toDelete)
{
dt_kimaylmt.Rows.Remove(dr);
}
dt_kimaylmt.AcceptChanges();