Simple way to add Number columns to DataGrid

xiaoxiao2021-03-06  114

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

>

转载请注明原文地址:https://www.9cbs.com/read-101696.html

New Post(0)