''以下代碼放在DataGrid的ItemCreated事件中即可
       Dim i As Integer
        If e.Item.ItemType = ListItemType.Pager Then
            Dim _labPage As Label
            Dim pager As TableCell
            pager = CType(e.Item.Controls(0), TableCell)
            For i = 0 To pager.Controls.Count - 1
                Dim obj As Control
                obj = pager.Controls(i)
                Try
                    _labPage = CType(obj, Label)
                    _labPage.ForeColor = Color.Red
                Catch ex As Exception

                End Try
            Next
        End If

相关文章:

  • 2022-12-23
  • 2022-01-22
  • 2021-12-29
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2021-07-17
  • 2021-12-06
猜你喜欢
  • 2022-01-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案