Ver Mensaje Individual
  #2 (permalink)  
Antiguo 01/11/2006, 18:07
axpicasso
 
Fecha de Ingreso: octubre-2006
Mensajes: 53
Antigüedad: 18 años, 4 meses
Puntos: 1
espero te ayude

Aqui esta la solucion yo lo utilice para un super sistema que tengo y espero que te ayude, cualquier info o consulta puedes escribirme a
[email protected]
[email protected]


<asp:TemplateColumn HeaderText="COUNTRY | STATE">
<ItemTemplate>
<asp:DropDownList Runat="server" ID="country" CssClass="letras" AutoPostBack="True" OnSelectedIndexChanged="DropDown_SelectedIndexChan ged" />
</ItemTemplate>
</asp:TemplateColumn>



Public Sub DropDown_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs)
Dim combo As DropDownList = CType(sender, DropDownList)
Dim cell As TableCell = CType(combo.Parent, TableCell)
Dim item As DataGridItem = CType(cell.Parent, DataGridItem)

If combo.ID = "country" Then
Dim ccity As DropDownList = CType(item.FindControl("city"), DropDownList)
Dim tcode As TextBox = CType(item.FindControl("code"), TextBox)
Dim pais As String = combo.SelectedItem.Value

tcode.Text = ""

DDCity(pais, ccity)
ElseIf combo.ID = "city" Then
Dim tCode As TextBox = CType(item.FindControl("code"), TextBox)
tCode.Text = combo.SelectedItem.Value
End If
End Sub