Error: The IListSource does not contain any data sources.
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Please help. I am getting the above error. my code: SqlConnection conn = new SqlConnection("data source=server;initial catalog=database;persist security info=False;user id=user;password=password"); conn.Open(); DataTable t_table = new DataTable(); SqlDataAdapter adapt; SqlCommand cmd = new SqlCommand("Select Project_ID From tblProjects",conn); adapt = new SqlDataAdapter(cmd); adapt.Fill(t_table);dsProjectId.Tables.Add(t_table);