Alternative to datatable

I get rows from the database and store them in a datatable. Rows can be from 39 up to maybe 200 . I have 5 columns. I have at most 100 users. I save this datatable in a session and loop thru it to build a treeview and its nodes..

Is there an alternative to Datatable that I can keep in session that would be better for performance?
LVL 8
CamilliaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

zkeownCommented:
You could write them to an XML file (based on Session ID perhaps) and then just bind the TreeView to the XMLDataSource.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CamilliaAuthor Commented:
ah, didnt think about XML. Let me think.
0
zkeownCommented:
There's an example halfway down this page.  You'd need to modify it to actually create an XML file instead of just storing it in memory, but otherwise I've used it and it works great.

http://www.15seconds.com/issue/041117.htm
0
CamilliaAuthor Commented:
thanks, let me look.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.