I have two tables Customers and Country and use ( Entity Framework with vs 2012 )
there is one more solution, using ViewBag
using(var db = new jQGridEntities()) { var customers = db.Customers.Where(c=>c.Country!=null).ToList(); ViewBag.customerlist= customers; }