datagrid 双标题?
声明的全局变量
Private upPager As Boolean = True
Protected Sub MyDataGrid_ItemCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles MyDataGrid.ItemCreated
Dim ItemType As ListItemType
ItemType = e.Item.ItemType
If ItemType = ListItemType.Pager Then
If uppager = true Then
Dim cellPersonal As TableCell
cellPersonal = CType(e.Item.Controls(0), TableCell)
cellPersonal.Controls.Clear()
cellPersonal.BackColor = Drawing.Color.Blue
cellPersonal.ForeColor = Drawing.Color.White
cellPersonal.Font.Bold = True
cellPersonal.ColumnSpan = 1
cellPersonal.HorizontalAlign = HorizontalAlign.Center
cellPersonal.Controls.Add(New LiteralControl( " "))
Dim cellPersonal0 As TableCell
cellPersonal0 = New TableCell()
cellPersonal0.BackColor = Drawing.Color.Blue
cellPersonal0.ForeColor = Drawing.Color.White
cellPersonal0.Font.Bold = True
cellPersonal0.ColumnSpan = 3
cellPersonal0.HorizontalAlign = HorizontalAlign.Center
cellPerso