Christian Graus wrote:
Then create a struct, and a list of that struct, and bind to that
I would've used an xml doc. Not because it's better than your solution, but just because it's the way I think. ' mypath is derived from something like Server.MapPath("App_Data\XMLFile1.xml")
Public Function GetXMLTable(ByVal mypath As String) As DataTable
Dim myDS As DataSet = New DataSet()
Try
myDS.ReadXml(mypath)
Catch ex As Exception
dim exc as Exception = new Exception("Cannot read file " + mypath + " in GetXMLTable. " + ex.Message)
Throw exc
End Try
Return myDS.Tables(0)
End Function
Jon "One loves to possess arms, though they hope never to have occasion for them." --Thomas Jefferson to George Washington, 1796. Soap Box 1.0: the first, the original, reborn troll-less
modified on Wednesday, August 5, 2009 11:00 AM