Mfwamba Tshimanga

Mfwamba Tshimanga

  • NA
  • 155
  • 46.5k

Actualize a reportview on run time

Feb 9 2015 8:42 AM


Hi!


With these code I can actualize my datagrid.

            conn.Open();
            OleDbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.Text;
            cmd.CommandText = "select [date],[name] from 1";
            cmd.ExecuteNonQuery();
            DataTable dt = new DataTable();
            OleDbDataAdapter da = new OleDbDataAdapter(cmd);
            da.Fill(dt);
            conn.Close();
            dgvPorData.DataSource = dt;

Then I am asking question how can I actualize on time a reportview on my form. In other word if I update one data (or some datas) on the same form. How can actulize on run time.

Answers (2)