Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/06/2007, 05:47
Avatar de Mysticaliptica
Mysticaliptica
 
Fecha de Ingreso: abril-2007
Ubicación: Guipuzcoa
Mensajes: 35
Antigüedad: 17 años, 10 meses
Puntos: 0
Re: TreeView - Treeviewnodes - Modos de seleccion.

Aki tienes lo q hize yo en el evento Aftercheck

private void *tuTreeView*_AfterCheck(object sender, TreeViewEventArgs e)
{
if (e.Node.Checked == true)
{
e.Node.Expand();
for (int i = 0; i < e.Node.Nodes.Count; i++)
{
e.Node.Nodes[i].Checked = true;
}
}
else
{
for (int i = 0; i < e.Node.Nodes.Count; i++)
{
e.Node.Nodes[i].Checked = false;
}
}
}

Creo q es esto lo q preguntas.

Un saludo