Re: Agregar Row al final de un treeview

Ricardo Medina <[email protected]> Mon, 22 Feb 2010 21:09:27 -0600
Newsgroups gmane.comp.gnome.mono.hispano
Message-ID <1266894567.2395.24.camel@Hera>
TreeStore.AppendValues siempre agrega una fila al final con los nuevos
datos que pasas como argumentos. ¿Es lo que quieres?

podrías ser mas explicito? ..Creo que no he entendido bien lo que
planteas..

Saludos

El mar, 16-02-2010 a las 18:21 -0800, Martin Ibarra escribió:
> Que tal mono, s necesito agregar un renglon al final de mi TreeView ,
> pero para esto primero lleno mi treeview con un archivo  de texto que
> contiene X numero de lineas
> y estas me las despliega en el treeview, sin embargo necesito agregar
> una linea y que esta me la ponga al final de mi treeview, 
> 
> TreeStore store = new TreeStore (typeof (string), typeof (string),
> typeof (Gdk.Pixbuf));                        
>                     
>                     treeviewPath.Model = store;
>                                         
>                     TreeViewColumn col = new TreeViewColumn();
>                     CellRendererText cellrt = new CellRendererText();
>                     CellRendererText cellrtc = new CellRendererText();
>                     CellRendererPixbuf iconX = new
> CellRendererPixbuf();
>                     
>                     
>                     col.AddAttribute(cellrt, "text",0);
>                     col.AddAttribute(cellrtc, "text", 1);
>                     col.AddAttribute(iconX, "pixbuf", 2);
>                     
>                    col.PackEnd(cellrt, true);
>                    col.PackEnd(cellrtc,true);
>                    col.PackEnd(iconX, true);                   
> 
>                     store.AppendValues("abbb", "cccc", new
> Gdk.Pixbuf(_ICON));
> 
> con este codigo me limpia mi treeview y me coloca los datos, sin
> embargo yo necesito que se vean los demas tambien.
> 
> SAludos.
> 
>                     
> _______________________________________________
> Mono-hispano mailing list
> [email protected]
> https://listas.hispalinux.es/mailman/listinfo/mono-hispano


-- 
Ricardo Medina <[email protected]>
http://ricki9.wordpress.com