Ver Mensaje Individual
  #4 (permalink)  
Antiguo 08/01/2007, 21:25
yesmina
 
Fecha de Ingreso: diciembre-2004
Mensajes: 133
Antigüedad: 20 años, 3 meses
Puntos: 0
Re: Envio de variables por DataGrid

Amiguito, aun no me sale. aki tengo el codigo de mi datagrid:

<asp:datagrid id="dg_SolSopTec" runat="server" Width="588px" Height="2px" AutoGenerateColumns="False" AllowPaging="True" DataKeyField="fst_cod">
<FooterStyle Font-Names="Arial" ForeColor="Navy"></FooterStyle>
<ItemStyle Font-Size="10pt" Font-Names="Arial" BackColor="WhiteSmoke"></ItemStyle>
<HeaderStyle Font-Size="10pt" Font-Names="Arial" Font-Bold="True" Wrap="False" HorizontalAlign="Center"
ForeColor="Desktop" BackColor="#FFC080"></HeaderStyle>
<Columns>
<asp:BoundColumn Visible="False" DataField="fst_cod" HeaderText="Cod">
<HeaderStyle Width="1cm"></HeaderStyle>
</asp:BoundColumn>
<asp:ButtonColumn DataTextField="fst_cod" HeaderText="ID" CommandName="Select">
<HeaderStyle Width="1cm"></HeaderStyle>
<ItemStyle Font-Size="10px" Font-Names="Arial"></ItemStyle>
</asp:ButtonColumn>
<asp:HyperLinkColumn Target="_blank" DataTextField="fst_cod" HeaderText="ID-enlace" NavigateUrl="/egesur_net/1SolSopTecnico/SolSopTecnico1_Detalle.aspx"></asp:HyperLinkColumn>
<asp:BoundColumn DataField="fst_nom" HeaderText="Nombre">
<HeaderStyle Width="3cm"></HeaderStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="fst_des" HeaderText="Descripción">
<HeaderStyle Width="4cm"></HeaderStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="fst_est" HeaderText="Estado">
<HeaderStyle Width="2cm"></HeaderStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="fecha" HeaderText="Fecha In">
<HeaderStyle Width="2cm"></HeaderStyle>
</asp:BoundColumn>
</Columns>
<PagerStyle Font-Size="9pt" Font-Names="Arial" BackColor="WhiteSmoke" Mode="NumericPages"></PagerStyle>
</asp:datagrid>

*--------------------------------------------
Y en la parte del vb


Private Sub dg_SolSopTec_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs ) Handles dg_SolSopTec.ItemCommand

Dim lstId As String
If ((e.CommandName = "EditItemCommand")) Then
lstId = Str(dg_SolSopTec.DataKeys(e.Item.ItemIndex)) 'lectura de Id de enlace Maestro-detalle
Response.Redirect("/egesur_net/1SolSopTecnico/SolSopTecnico1_Detalle.aspx?pnuId=" + lstId, True
End If )


End Sub

No sep ke me este faltando
__________________
Mina