I tried wrining the engine settings using the following:
void
Form1::SaveSkiResultsGrid(String *FileName)
{
XmlTextWriter *xw = new XmlTextWriter(S"SkiTrackGrid.XML", System::Text::Encoding::UTF8);
P_GridSkiResults->WriteXmlSchema(xw);
xw->Close();
}
I tried this in two places, one in a event handler for the GridSkiResultsSelectedRecordsChanged
(put here for testing convienience)
the other in the _tWinMain as follows:
Application::Run(MainWindow);
MainWindow->SaveSkiResultsGrid(S"BeforeExit.xml");
Included are the two resulting xml files. The onw in _tWinMain seems to have nothing of value in it and the other does not have any column widths even though I resized two colums
I wanted to use the _tWinMain since it would contain the last changes but that seems to not store anything.
WJL
XmlFiles.zip