Microsoft
Software
Hardware
Network
Question : Need to connect a DataGridView with a database
My WinForms program connects with an Access database in perhaps a hundred different functions, executing various sql queries against the database. But now I'd like to use a DataGridView and make it take advantage of the automatic synchrinization between the DataGridView and the database table. For this, must I open "Choose DataGridView Tasks" then "Choose Data Source"?
The problem I have doing this is that have not configured the connection to the database via Visual Studio, instead using a ConnectionString arguement and dynamically connection to the database.
Can I do it this way with the DataGridView? Or must I set up the connection via Visual Studio?
I have no problem doing so, but:
1) I do not know how
2) I do not want to force myself to go recode all the various connections I make dynamically
Please suggest a path forward.
Thanks,
newbieweb
Answer : Need to connect a DataGridView with a database
Check this out. It will tell the story
http://www.switchonthecode
.com/tutor
ials/cshar
p-tutorial
-
binding-a
-datagridv
iew-to-a-d
atabase
-Kusala
Random Solutions
isa server
I am also trying to connect MS Access to NCR Teradata. I have not been able to connect through ADODB connection - when I try to open the connection I get this error: "Can't find host [MyServer]Cop1
Change style of the selected menu item
RDP vs. XenApp?
Select rows in one table that are not in another table.
Permissions issue with system folder
How do i Create a DSN connection in Access??
How to restart the install wizard for Windows SBS 2008 Standard
What is difference between 2003 Standard and 2003 Datacenter servers?
Viewing Crystal Reports in an MFC SDI Application