<pre lang="c#"> using (MySqlConnection con = new MySqlConnection(ConnectionString)) { String query = "select * from transaction where DATE(paid_date)BETWEEN '" + fromdate + "'AND'" + todate + "' AND(customer_id='" + customer + "' OR card_id='" + card + "')"; con.Open(); MySqlDataAdapter da = new MySqlDataAdapter(query, con); DataTable dt = new DataTable(); da.Fill(dt); dataGridView1.DataSource = dt; //dataGridView1.DataBind();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)