Agregar Row al final de un treeview
Martin Ibarra <[email protected]>
| Newsgroups | gmane.comp.gnome.mono.hispano |
|---|---|
| Message-ID | <[email protected]> |
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