2
Answers

displays multi upload pdf files in a single row gridview

 no Name file Status
 1 hothorasman file1,file2 ok
 

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();

}

 
Answers (2)