I have a section of my project that is Driving me nuts.
No one has been able to help that much on it, so i thought of posting it
here in hopes someone could help.
I need to print out an Ordered list.
Ex.
1. Something
2. Something Else
......A. SOmething
......B. Something
3. HEre's three
......A. Again
...........a. and again
4. Yo
...........a. zoom in some
5. This is 5
I have 2 DataTables. One DataTable has the Headings (which you see in the
above example) and the Indent of the heading. I don't use Child / parent
because it needs to be more flexible than that as you see with
4............a. The other DataTable has a bunch of items that goes under
each heading. I don't need to worry about that right now. I just need a way
of creating that ordered list from the DataTable that has the Heading Name
and Indent. (The headings are in order already when retrieved from the
DataBase.
The Indent is an Integer, and then I use the users settings to know how far
over to throw it (in pixels).
I was thinking a recursive loop, but I've only done those in University and
with very simple data. This is a bit more robust.
If anyone can help or point me in the right direction it would be awesome!
Thanks.
/RT