help me,
this my code to bind gridview
private void show()
{
MySqlConnection con = new MySqlConnection(strConnString);
DataTable dtbl = new DataTable();
string sql = "SELECT * FROM tbl_peraturan";
con.Open();
MySqlDataAdapter adap = new MySqlDataAdapter(sql, con);
adap.Fill(dtbl);
GridView1.DataSource = dtbl;
GridView1.DataBind();
con.Close();
}