Try this
var type = from p in entities.Customers select p;
this.Gridview1.DataSource = type.AsDataView();
this.GridView1.DataBind();
or
var type = from p in entities.Customers
select new
{
id = p.id,
name = p.name,
.
.
.
};
this.Gridview1.DataSource = type.AsDataView();
this.GridView1.DataBind();