Torna al Thread

Protected Sub GV1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GV1.RowDataBound If e.Row.RowType = DataControlRowType.DataRow Then Dim DRV As DataRowView = CType(e.Row.DataItem, DataRowView) ' ipotizziamo che la cell in posizione 1 (la seconda da sinistra) esista e che sia un template field (un qualunque tipo di cella è sufficiente) e.Row.Cells(1).Text = String.Format("<a href=""javascript:openPopup('{0}?ID={1}')"">premi qui</a>", DRV("URLPopUp"),DRV("ID")) End If End Sub
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5