Ver Mensaje Individual
  #4 (permalink)  
Antiguo 15/03/2007, 12:18
Avatar de shumito
shumito
 
Fecha de Ingreso: mayo-2006
Mensajes: 248
Antigüedad: 18 años
Puntos: 0
Re: Hacer esto por codigo...

Finalmente lo hice ocupando lo sgte
Bindingsource
table
adapter
CommandBuilder.
******************************
ConsultaSQL="SELECT * FROM EMPLEADOS WHERE ID='$Id_Lista'";
ConsultaSQL = ConsultaSQL.Replace("$Id_Lista", IdLista);
DbCommand ComandoSQL = Aplicacion.CreaComandoBD(ConsultaSQL);
AdapterE = new OdbcDataAdapter(ConsultaSQL, (OdbcConnection)Aplicacion.getConexionBD());
OdbcCommandBuilder CB = new OdbcCommandBuilder(AdapterE);
TableE = new DataTable();
AdapterE.Fill(TableE);
BindingSource Binding = new BindingSource();
Binding.DataSource = TableE;
this.dgvElementos.DataSource = Binding;