William,
Well there is no specific code issue here, I was looking for feedback from
people who have coded routines to read arbitrary sections from a .NET config
file and mapped it to a DataGrid. It was a query for techniques.
Are there any favorites out there, anyone? In my own code I've coded the
following approaches:
1) Use Configuration classes.
2) Read the XML contents into a DataSet then filter by using ImportRow on
the target DataSet then returning that DataSet.
3) This was really a morph of Item 1 and 2.
Option 2 is the one I like the best but I must admit that I expected that
when I set the schema for the DS and told it to read the config file; it
should map the sections appropriately. This approach fails if you have
multiple "<add " sections since the DS wants to treat these as proper
tables.
Thanks,
Dilton