supposeDataGridnameddgCustomize, insertthefol
suppose DataGrid named dgCustomize, insert the following code to the first column. < asp:TemplateColumn HeaderText ="No." > < ItemStyle HorizontalAlign ="Center" ></ ItemStyle > < ItemTemplate > < asp:Label runat ="server" Text ='<%# dgCustomize.CurrentPageIndex*dgCustomize.PageSize dgCustomize.Items.Count 1 % > '> </ asp:Label > </ ItemTemplate > </ asp:TemplateColumn > |
本文由来源 21aspnet,由 javajgs_com 整理编辑,其版权均为 21aspnet 所有,文章内容系作者个人观点,不代表 Java架构师必看 对观点赞同或支持。如需转载,请注明文章来源。