数据表中选择前5行

问题描述:

是喜有任何方法可以选择从一个数据表前5行,而不迭代?

Hi is there any way to select top 5 rows from a data table without iteration?

我想,你可以使用LINQ:

I think, You can use LINQ:

datatable.AsEnumerable().Take(5);