H
hazz
With this code, the config file(listed below) opens initially into the
datagrid display with only a plus sign '+'.
On clicking that, it becomes expanded to;
-
appsettings
add
When I click on appsettings, it reverts back to '+' On clicking that,
- appsettings add is displayed
Finally, when I click on appsettings this time, the contents of the config
file is displayed.
What is going on here? How could I have the config file load into an
already expanded state?
Thanks -Greg
***************** code ******************************************
dsConfigFile = new DataSet("configfile");
dsConfigFile.ReadXml("c:\\Service.exe.config");
dataGrid1.DataSource = dsConfigFile;
****************** config file ******************************************
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="interval" value="10000" />
<add key="sDbConn" value="Data Source=xxxx;Database=xxxx;UID=xxx;Pwd=xxxx"
/>
</appSettings>
</configuration>
datagrid display with only a plus sign '+'.
On clicking that, it becomes expanded to;
-
appsettings
add
When I click on appsettings, it reverts back to '+' On clicking that,
- appsettings add is displayed
Finally, when I click on appsettings this time, the contents of the config
file is displayed.
What is going on here? How could I have the config file load into an
already expanded state?
Thanks -Greg
***************** code ******************************************
dsConfigFile = new DataSet("configfile");
dsConfigFile.ReadXml("c:\\Service.exe.config");
dataGrid1.DataSource = dsConfigFile;
****************** config file ******************************************
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="interval" value="10000" />
<add key="sDbConn" value="Data Source=xxxx;Database=xxxx;UID=xxx;Pwd=xxxx"
/>
</appSettings>
</configuration>