grid控件的列中添加如下代码<f:RowNumberField EnablePagingNumber="true" TextAlign="Center" /> 转载于:https://www.cnblogs.com/wangjp-1233/p/10124727.html