|
Populate datagrid from some sort of config file? -- rhaazy --
Using C# and VS2003 I have an application that starts off by asking the user to log into the database... The first option is to add a database to the datagrid. This is done using a diaglog window where the user enters the Server and Database. After the user clicks add, i want the information to be added to some sort of config file so that the next time the app is started the connection will still exist. Now all the user has to do is click on the database they watn to connect to and click connect. I believe I should use an XML file, but I'm not sure and am definately open to suggestions. Any tutorials on how to write to, read from, and use a config file would be greatly appreciated. thanx. |
|
-- Tito --
Look into the ConfigurationManager Class. It is an easy way of using the app.config file (XML) |