Nithika

Nithika

  • NA
  • 63
  • 18.9k

How can I get very first row

Mar 10 2019 11:36 PM
Hello Friends, 
There are so many rows in my resultset. is it possibel to get only the top row as a result. Need help.
  1. var result = from latest in dt.DefaultView.ToTable().AsEnumerable()  
  2.                                 select new  
  3.                                {  
  4.                                    record = latest.Field<string>("Items")  
  5.                                 }.ToTable();  

Answers (2)