🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #2262

Ayuda .net actualizar un datagrid

#2262
From: Alexis Araya
Date: Sun, 12 Feb 2006 18:18
34 lines
1737 bytes
Hola,

     tengo el siguiente problema..

tengo un datagrid enlazado a un bd.

///////////////////////////////////////////////

FbCommand comando_lector = conexion.CreateCommand();
			
comando_lector.CommandText="select * from USUARIOS";

FbDataAdapter adaptador = new FbDataAdapter ();
			
adaptador.SelectCommand = comando_lector;

adaptador.Fill(dataSet1,"USUARIOS");
		
dataGrid2.SetDataBinding(dataSet1, "USUARIOS")


////////////////////////////////////////////////////

Hasta aqui todo bien, pero tengo un form para agregar datos a las bd.
Este los agrega sin problema, pero en el datagrid no me muestra los 
datos actualizados..

tengo q cerrar la ventana y volverla a llamar, para q me muestre los 
datos actualizados.

Alguna sugerencia??


saludos..
Technical Details
Message-ID: <dsnu5h$bh7$1@news.nivel5.cl>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!news.glorb.com!nntp-server.pubsub.com!news.nivel5.cl!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,e628089616da29b1,start
X-Google-Attributes: gid1593cb,public
X-Google-Language: SPANISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!news.glorb.com!nntp-server.pubsub.com!news.nivel5.cl!not-for-mail
From: Alexis Araya <alex2000@_no_espam.vtr.net>
Newsgroups: chile.comp.programacion
Subject: Ayuda .net actualizar un datagrid
Date: Sun, 12 Feb 2006 15:18:26 -0300
Organization: Varios
Lines: 37
Message-ID: <dsnu5h$bh7$1@news.nivel5.cl>
NNTP-Posting-Host: pc-137-187-83-200.cm.vtr.net
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.nivel5.cl 1139768305 11815 200.83.187.137 (12 Feb 2006 18:18:25 GMT)
X-Complaints-To: news@news.nivel5.cl
NNTP-Posting-Date: Sun, 12 Feb 2006 18:18:25 +0000 (UTC)
User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)
X-Accept-Language: es-ar, es, en-us, en