GridView没有自动加行号的功能,记录需要行号的话,可以在模板列中使用 <%# Container.DataItemIndex + 1%> 来显示。 转载于:https://www.cnblogs.com/zgqys1980/archive/2008/09/02/1281870.html