Question Connecting DataGridView to datasource

DjGrego

Member
Joined
Nov 21, 2021
Messages
23
Programming Experience
Beginner
Hello. I'm learning how to create a DataGridView and bind to a database. I'm currently using .net 6.0 on VS 2022 with Winforms. Most tutorials I see show that I go to Data Sources window and choose the database from there. No data sources show up even after I setup the server. What is the best way to go about this? Should I be using a different framework, or should I learn to connect to the database programmatically?
 
Your question as it currently stands, your question is more about how to see data sources in Visual Studio, rather than WinForms itself.
 
I added a "new item", then chose "service-based database". Then under the "server explorer", I added a table.




Thank you for your help.
 
Your question as it currently stands, your question is more about how to see data sources in Visual Studio, rather than WinForms itself.
I understand. You are right. I read some things that lead me to believe the problem is related to winforms, but likely not the case.
 

Latest posts

Back
Top Bottom