c# - what am I missing here? DataGrid and ListView not getting populated in WPF application -


I am following a book on C # object-oriented programming and this application is not working. Datagrids and Listview are not populating. What important thing am I missing?

I can think that the only thing is that I am not connecting to the database because I do not know the syntax for the connection string, what is put in the data source = and so on. data source. \ Sqlexpress is in the book but my SQL Server 2012 is There is no error, so I do not know what to do.
Here is the code as the book: Back @ "Integrated Security = True; Data Source =. \ SQLEXPRESS;" + "Initial Catalog = OfficeSppy" ";

As I have written, here is the code:

  back @" data source = servername ; Initial Catalog = OfficeSupply "+ @" User ID = Username; Password = password ";   


I am completely noob, so I'm not completely sure that this is the problem.

< Take a look at the book when you go through the SQL data source or object data source div class = "post-text" itemproc = "text">

Which is your return DB connection string which you really want to do in your app. Config XML file

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -