From Evernote: |
オリジナルのボタン作成、イベント結びつけ |
よく忘れるので…
Dim LinkButton As New LinkButton
With LinkButton
.CommandName = "Page"
.Text = "<img src=""images/left_gray.gif"" align=""middle"" border=""0"" alt=""前のページ"">"
.Tag = 1
AddHandler .Click, AddressOf btnLM_Click
end With
Dim TableCell As New TableCell
TableCell.Controls.Add(LinkButton)
e.Row.Cells(0).Controls(0).Controls(0).Controls.AddAt(0, TableCell)
又は
e.Row.Cells(0).Controls(0).Controls(0).Controls.Add(TableCell)
Dim LinkButton As New LinkButton
With LinkButton
.CommandName = "Page"
.Text = "<img src=""images/left_gray.gif"" align=""middle"" border=""0"" alt=""前のページ"">"
.Tag = 1
AddHandler .Click, AddressOf btnLM_Click
end With
Dim TableCell As New TableCell
TableCell.Controls.Add(LinkButton)
e.Row.Cells(0).Controls(0).Controls(0).Controls.AddAt(0, TableCell)
又は
e.Row.Cells(0).Controls(0).Controls(0).Controls.Add(TableCell)
0 件のコメント:
コメントを投稿