摘要:
如果是SQL2005可以这么操作select ROW_NUMBER() OVER (ORDER BY CreateDate DESC) AS SortID,.....from TABLE.为 Gridview 增加一个新的空白列,如下:<asp:BoundField HeaderText="序号"> <ItemStyle HorizontalAlign="Center" Width="26px" /> </asp:BoundField>在 GridView RowDataBound 事件中编写代码, 阅读全文