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();