[Fwd: [Gtk-sharp-list] get and put data in controls]

Jorge De Gante jdegante@linuxware.com.mx
03 Mar 2003 13:43:30 -0600


-----Mensaje reenviado-----

> From: Jorge De Gante <jdegante@linuxware.com.mx>
> To: Gtk# Mailing List <gtk-sharp-list@ximian.com>
> Subject: [Gtk-sharp-list] get and put data in controls
> Date: 03 Mar 2003 13:26:37 -0600
> 
> Hi everyone
> 
> 
> I got two questions:
> 
> 1. This is the optimal way to put data from a table in a treeview?
> 
> 
> GLib.Value id_almacen = new
> GLib.Value(Convert.ToString(reader["id_almacen"]));

---this line was missing ---


store.SetValue(iter, 0, id_almacen);



> 
> or there is a better method to do it?
> 
> 
> 
> 2. How can I sanitize the data in a control, Gtk.Entry for example,
> before put that data in a query string that makes an INSERT or an UPDATE
> to a database?
> 
> -- 
> Jorge De Gante Tellez
> jdegante@linuxware.com.mx
> LinuxWare S.A. de C.V.
> http://www.linuxware.com.mx
> Tel. 26-03-15-15 26-03-15-16 26-03-15-17 
> Fax 26-03-15-18
> 
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
-- 
Jorge De Gante Tellez
jdegante@linuxware.com.mx
LinuxWare S.A. de C.V.
http://www.linuxware.com.mx
Tel. 26-03-15-15 26-03-15-16 26-03-15-17 
Fax 26-03-15-18