Posts

Showing posts from May, 2009

How to: Get Top n Rows of DataView in C# asp.net

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); }

My PhotoGraphy in Yahoo photostream

CheckList for Items - Going for Higher Studies

Sl No. Name 1 Jeans, T-Shirt, Undergarments, Shirt, Belt, Socks, Sandal(Yonex) + Keds, Shoes, Blazer + Tie, Suits, Normal Full Pant, Trouser, Half Pant, Sando T-Shirt, Payjama, Panjabi, fotua monkey cap, jacket 2 Shaving Cream, After shave Lotion, Razor+ Cartridge, Body Spray, Cologne, Tooth Paste, Tooth Brush 3 Fry pan, Wooden Spoons 4 Masala- morich (chili), zira (cumin), dhonia (coriander), holud (turmeric), tejpata (bay leaf), elachi (cardamom), darchini (cinnamon) 5 S/W, Movie CD / DVD, Mobile Hard Disk, Pen Drive, Headphone, mouse 6 Books, Khata, calculator 7 Rechargeable Battery 8 Photos 9 Moneybag 10 Necessary Documents for US University, Course outline of BUET, Job Certificate(s)+ Offer Letter, Closing of Bank Account, All documents of BUET, SSC, HSC 11 Jaynamaz+Quran Sharif+Tupi, One islamic book for all rules an...