
05/11/2008, 13:53
|
 | | | Fecha de Ingreso: noviembre-2007 Ubicación: Knocking the Death Door..
Mensajes: 368
Antigüedad: 17 años, 3 meses Puntos: 3 | |
Respuesta: Ayuda con filtro combobox Aqui te dejo la funcion ya funcional.. debido a un problema con la conversion..
private void cmblin_SelectedIndexChanged(object sender, EventArgs e)
{
int ndx = cmblin.SelectedIndex;
string item = (string)cmblin.SelectedItem;
switch (item)
{
case "Acabados":
this.cmbequ.Items.Clear();
this.cmbequ.Items.Add("Creel");
this.cmbequ.Items.Add("Adhesivos");
this.cmbequ.Items.Add("Conveyor");
break;
case "Adhesivos":
this.cmbequ.Items.Clear();
this.cmbequ.DataSource = null;
this.cmbequ.Items.Add("Hola");
this.cmbequ.Items.Add("ESto");
this.cmbequ.Items.Add("es otro");
break;
}
Ahora si te debe funcionar ya la probe XDD
Salu2..!!
__________________ Somos lo que nosotros queremos ni mas ni menos..
No hay dia mas perdido que aquel en que no hemos reido..
La vida es tal y como debe ser...
Nadie vivira por ti... |