Cita:
Gracias por sus sugerencias. Partial Public Class ucTasaImponible
Inherits System.Web.UI.UserControl
Public pagina As Integer
'-----------------------------
Public Sub gv1_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles gv1.PageIndexChanging
pagina = e.NewPageIndex
End Sub
'-------------------------------
Public Sub gv1_RowDeleting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewDeleteEventArgs) Handles gvTabla.RowDeleting
Dim posicion As Integer
posicion = e.RowIndex + pagina 'ERROR ME TRAE SIEMPRE EL VALOR POR DEFECTO QUE ES CERO 0
Me.Label1.Text = Cstr(posicion)
End Sub
Inherits System.Web.UI.UserControl
Public pagina As Integer
'-----------------------------
Public Sub gv1_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles gv1.PageIndexChanging
pagina = e.NewPageIndex
End Sub
'-------------------------------
Public Sub gv1_RowDeleting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewDeleteEventArgs) Handles gvTabla.RowDeleting
Dim posicion As Integer
posicion = e.RowIndex + pagina 'ERROR ME TRAE SIEMPRE EL VALOR POR DEFECTO QUE ES CERO 0
Me.Label1.Text = Cstr(posicion)
End Sub