Ver Mensaje Individual
  #2 (permalink)  
Antiguo 17/09/2004, 09:11
Avatar de RootK
RootK
Moderador
 
Fecha de Ingreso: febrero-2002
Ubicación: México D.F
Mensajes: 8.004
Antigüedad: 22 años, 4 meses
Puntos: 50
Ya intentaste hacer con un itemtemplate..??

Prueba de ésta forma:

Cita:
<asp:datagrid id="myGrid" runat="server" width="100%" ....
....

<asp:TemplateColumn>
<ItemTemplate>
<asp:Button Runat=server ID=bntCustom CommandName="ButtonTest" Text="Boton"></asp:Button>
</ItemTemplate>
</asp:TemplateColumn>
...
....
</asp:datagrid>
Y para asociar el evento puedes hacer ésto con el itemcommand.

Cita:
Private Sub myGrid_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs ) Handles myGrid.ItemCommand
If e.CommandName = "ButtonTest" Then
..
..
'mi código
End If
End Sub
Salu2
__________________
Nadie roba nada ya que en la vida todo se paga . . .

Exentrit - Soluciones SharePoint & Net