var abc = ViewBag.xyz as IEnumerable<MeroPet.Model.Report>; foreach( var x in abc) { // now we can use abc.(Any item inside Report Model) to show data dynamically }