Click here to Skip to main content
15,887,683 members
Home / Discussions / C#
   

C#

 
GeneralRe: Simple Windows App. HELP A GUY OUT! Pin
Nick Parker17-Feb-03 1:43
protectorNick Parker17-Feb-03 1:43 
Questionwhy is the OleDbCommand busy? Pin
mkomasi15-Feb-03 0:18
mkomasi15-Feb-03 0:18 
GeneralDisabling a Forms movement and mouse responce Pin
jtmtv1814-Feb-03 22:59
jtmtv1814-Feb-03 22:59 
GeneralRe: Disabling a Forms movement and mouse responce Pin
Stephane Rodriguez.14-Feb-03 23:17
Stephane Rodriguez.14-Feb-03 23:17 
GeneralPlease Help me about PropertyGrid Control Pin
TonyZWH14-Feb-03 15:41
TonyZWH14-Feb-03 15:41 
GeneralRe: Please Help me about PropertyGrid Control Pin
TonyZWH14-Feb-03 23:38
TonyZWH14-Feb-03 23:38 
GeneralI need your suggestion about data storage Pin
lnong14-Feb-03 14:47
lnong14-Feb-03 14:47 
GeneralRe: I need your suggestion about data storage Pin
Rocky Moore14-Feb-03 19:41
Rocky Moore14-Feb-03 19:41 
<Folder name="Main">
    <file>Filename</file>
    <file>Filename2</file>
    <Folder name="SubFolderOne">
      <file>Filename1</file>
      <file>Filename2</file>
      <file>Filename3</file>
    </Folder>
</Folder>

There are XML commands to navigate up and down child nodes.

Not sure how you plan to bind hierarchical data to a DataGrid or DataList. I would imagine you are only referring to a sinlge level at a time.

The collections are based on "object". This can be anything. You can have a collections of collections this building your hierarchical data. An SortedList of SortedLists or ArrayList of ArrayList might work for you. This would mean that each Node was a new Collection.

There is an example of something along that lines at:

http://www.dotnetjunkies.com/tutorials.aspx?tutorialid=560[^]

If you need more than just a file name stored you can build your own class for a data item and use it in your collection instead of just a string.

Rocky Moore <><
QuestionIs there a Tree class in .NET? Pin
lnong14-Feb-03 13:05
lnong14-Feb-03 13:05 
AnswerRe: Is there a Tree class in .NET? Pin
Furty14-Feb-03 19:08
Furty14-Feb-03 19:08 
GeneralForms/Listbox Display Pin
Sovman14-Feb-03 11:17
Sovman14-Feb-03 11:17 
GeneralRe: Forms/Listbox Display Pin
Ray Cassick14-Feb-03 11:23
Ray Cassick14-Feb-03 11:23 
GeneralIrDAClient Pin
Daniel Strigl14-Feb-03 10:35
Daniel Strigl14-Feb-03 10:35 
GeneralConverting a Graphics Object Back to a Bitmap Pin
draco_iii14-Feb-03 8:21
draco_iii14-Feb-03 8:21 
GeneralRe: Converting a Graphics Object Back to a Bitmap Pin
draco_iii14-Feb-03 8:34
draco_iii14-Feb-03 8:34 
GeneralRe: Converting a Graphics Object Back to a Bitmap Pin
Furty14-Feb-03 8:58
Furty14-Feb-03 8:58 
GeneralRe: Converting a Graphics Object Back to a Bitmap Pin
clarkwuzhe14-Feb-03 10:29
clarkwuzhe14-Feb-03 10:29 
GeneralRe: Converting a Graphics Object Back to a Bitmap Pin
Furty14-Feb-03 11:11
Furty14-Feb-03 11:11 
GeneralRuntime Error in Treeview Imagelist Pin
vlusardi14-Feb-03 7:52
vlusardi14-Feb-03 7:52 
GeneralRe: Runtime Error in Treeview Imagelist Pin
John Mautari14-Feb-03 8:29
John Mautari14-Feb-03 8:29 
GeneralRe: Runtime Error in Treeview Imagelist Pin
vlusardi14-Feb-03 8:45
vlusardi14-Feb-03 8:45 
GeneralRe: Runtime Error in Treeview Imagelist Pin
Furty14-Feb-03 9:02
Furty14-Feb-03 9:02 
GeneralRe: Runtime Error in Treeview Imagelist Pin
vlusardi14-Feb-03 9:19
vlusardi14-Feb-03 9:19 
GeneralRe: Runtime Error in Treeview Imagelist Pin
dazinith16-May-03 4:46
dazinith16-May-03 4:46 
GeneralRe: Runtime Error in Treeview Imagelist Pin
vlusardi19-May-03 6:55
vlusardi19-May-03 6:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.