Question: how to export datagridview data to pdf in c#?
Answer: private void FrmExport_Load(object sender, EventArgs e)
{
SqlConnection sqlCon;
string conString = null;
string sqlQuery = null;
conString = "Data Source=.;Initial Catalog=DemoTest;Integrated Security=SSPI;";
sqlCon = new SqlConnection(conString);
sqlCon.Open();