Data binding with linq query

S

Seema

Hi,

I have a table named "Customers" which has 6 columns with 15 rows. I want to
show all athe records in Gridview using linq quieries. I am using this query
but it is not giving me all the records. How can I show all the records in
Gridview.



var type = (from p in entities.Customers select p)
this.Gridview1.DataSource = type;
this.GridView1.DataBind();
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,058
Latest member
QQXCharlot

Latest Threads

Top