DataView in asp.net doesn't have any method of returning Top n rows or it doesn't accept any row filter string such as, dataview.RowFilter = "top 100". So to server the purpose you can use the method below to get top n rows from DataView. private DataView GetTopDataViewRows(DataView dv, Int32 n) { DataTable dt = dv.Table.Clone(); for (int i = 0; i { if (i>= dv.Count) { break; } dt.ImportRow(dv[i].Row); } return new DataView(dt, dv.RowFilter, dv.Sort, dv.RowStateFilter); }
Yesterday, Taksin, Waseef, Avi and I went to the Alauddin road to take "Haji Biriyani" as our Dinner. It is almost seven years have passed since I last ate Haji Biriyani. The taste is almost the same as previous. The cost per plate is 120 TK. This is new price for Haji Biriyani started from July 1st, 2008. They parcel biriyani wrapped in a box, make of dry leaves. We took 4 plates of biriyani and finished it with in a moment :D. After that we went to nearby juice shop and took 4 glasses of Lemon Juice. The taste of that juice was completely different and very nice. If you ever plan to go to puran Dhaka please try that Lemon juice. I have attached a visiting card of Haji Biriyani. Please try it if you have not yet tasted it!!
Comments
Post a Comment