Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound
Dim comment As Label = DirectCast(e.Row.FindControl("comment"), Label)
Dim compost As Label = DirectCast(e.Row.FindControl("compost"), Label)
Dim img As Image = DirectCast(e.Row.FindControl("img"), Image)
Dim COMID As Label = DirectCast(e.Row.FindControl("COMID"), Label)
If (Not IsNothing(comment)) Then
comment.Text = e.Row.DataItem("COMDETAIL")
End If
If (Not IsNothing(compost)) Then
compost.Text = e.Row.DataItem("COMDATE")
End If
If (Not IsNothing(img)) Then
img.ImageUrl = e.Row.DataItem("COMPIC")
End If
If (Not IsNothing(COMID)) Then
COMID.Text = e.Row.DataItem("COMID")
End If
End Sub
Protected Sub GridView1_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles GridView1.PageIndexChanging
GridView1.PageIndex = e.NewPageIndex
BindData()
End Sub