Ver Mensaje Individual
  #4 (permalink)  
Antiguo 09/07/2010, 02:33
Avatar de leo_nqn
leo_nqn
 
Fecha de Ingreso: abril-2010
Ubicación: Neuquen
Mensajes: 461
Antigüedad: 14 años, 9 meses
Puntos: 24
De acuerdo Respuesta: Datagrid + c#

El equivocado era yo.. el problema esta en la clase. ya lo solucione, muchas gracias por las ayudas .. use solo un datatable... y anda excelente.. muchas gracias y saludos.

Clase:
Código:
public DataTable CargarPaciente()
        {
         CONEXION DatosPaciente= new CONEXION();
         DatosPaciente.Stringconetion = DatosPaciente.CargarStringConnection("c:\\A.txt");
         DatosPaciente.Conectar();
         DataTable MisPacientes = DatosPaciente.TraerDataTableSQL("select * from Paciente");
         return MisPacientes;

        }
Formulario:
Código:
Paciente pac = new Paciente();

Datapaciente.DataSource = pac.CargarPaciente();