Click here to Skip to main content
15,915,164 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi

this is my code
DataClassesDataContext db = new DataClassesDataContext();
       var r = from k in db.dds
               select k;
       GridView1.DataSource = r.ToList();

       GridView1.DataBind();

       dd tb = (dd)r.First();
       Response.Write(tb.name);



by this i get first row of my table.
if i want any other row from my table so where i can give the index..
plse tell me...
Posted

C#
NwindDataContext nw = new NwindDataContext();
       var products = from k in nw.dds
                      select k;
       gv1.DataSource = products;
       gv1.DataBind();
 
Share this answer
 
v2
hi.........
i done .. using skip()..
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900