Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            DataTable mitabla = new DataTable();

            BaseDataSetTableAdapters.ConsultasTableAdapter tablaconsultas = new BaseDataSetTableAdapters.ConsultasTableAdapter();

            mitabla = tablaconsultas.SelectQueryEspecialista("perico");

            dataGridView1.DataSource = mitabla;
        }
Ejemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            DataTable mitabla = new DataTable();

            BaseDataSetTableAdapters.ConsultasTableAdapter tablaconsultas = new BaseDataSetTableAdapters.ConsultasTableAdapter();

            // mitabla = tablaconsultas;

            //dataGridView1.DataSource = mitabla;
        }