How to select top n rows from a datatable/dataview in ASP.NET July 28, 2023 by Tarik In framework 3.5, dt.Rows.Cast<System.Data.DataRow>().Take(n) Otherwise the way you mentioned