I have 3 questions need help ,please
1- in windows application datagridview doesn't show data ,although the code is correct 100% and I tried the code in gridview in web app and it worked properly .
and when I tried to bind data to datagridview wizard it worked .
I tried a very simple query to ensure the datagridview is doesn't work
SqlCommand cmd = new SqlCommand("select dep from department", con);
con.Open();
SqlDataReader read = cmd.ExecuteReader();
dataGridView1.DataSource = read;
con.Close();
2- how can I run a deployed windows app connected to sql server database in a pc without need to setup sql server management studio
3- how to make windows app trial and work after entering specific serial no
thanks in advance