private void buttonConsultar_Click(object sender, EventArgs e)
 {
     RegPeliculas cs = new RegPeliculas();
     ConsultardataGridView.DataSource=cs.Consultar("PeliculasId = "+textBoxConsultar.Text);
 }
        private void buttonConsultar_Click(object sender, EventArgs e)
        {
            RegPeliculas cs = new RegPeliculas();

            ConsultardataGridView.DataSource = cs.Consultar("PeliculasId = " + textBoxConsultar.Text);
        }