Re: TreeView or DataGridView ?



thanks,
im looking at those and its quite usefull information.
most of those ilustrations look like either trees or grids though.

it is much more than a tree, and the usefull depth of nesting is quite
limited,
but its also a bit more than a grid,
what I realy need is a grid with sub grids,
one cell expands to a whole sub grid but it obviously cant fit in
the same cell.
the sub grid idealy is a complete grid with title/headings/border etc,
and would idealy just sit inbetween the two rows maybe best indented a bit.
I doubt the gridview can accomodate things inbetween its rows ?
if it could it would be the answer.
and ofc that grid can also have sub grids in it,
its recursive but thats probably as many levels as would be comprehensible.

the other thing is that there could be 2 or 3 cells in a row wich
could have a subgrid, wich is unlike most tree structures.

Im thinking to go the custom route atm, but im willing to wade through a
certian amount of info
but after a certian time looking it seems easier to just knock someting up
unless I come accros something wich doesnt take too much time to digest.

I would be surprised if someone somewhere hasnt done something just like
this already.

I am wondering how I can tie each cell to the particular data item so I can
update it as it is edited
most items are floats wich are maybe nested 3 deep inside structs/classes.
they need to be able to be editied from the grid or
elsewhere within the same app and kept up to date.
maybe I just need to simply iterate through the entire data set each time
one or the other is changed.

as for wpf, im not sure about .net 3 yet.

Colin =^.^=


"Nicholas Paldino [.NET/C# MVP]" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:u%23tYs34MIHA.820@xxxxxxxxxxxxxxxxxxxxxxx
Colin,

It seems like you really want to have something like a combination of a
tree view control with a grid control, not one or the other.

You could get a third party grid which supports heiarchical data
displays, but I think there is a better alternative.

I suggest you use a TreeView in Windows Presentation Foundation, and
then use composition to display the extra bits of data for the items in
the tree.

As a matter of fact, the ATC Avalon team has a good sample:

http://blogs.msdn.com/atc_avalon_team/archive/2006/03/01/541206.aspx

Which Chris Sells goes into further detail at:

http://www.sellsbrothers.com/news/showTopic.aspx?ixTopic=2128


--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx

"colin" <colin.rowe1@xxxxxxxxxxxxxxxxxx> wrote in message
news:fOZ3j.38$Hc3.27@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
I wish to display and edit 3 collections of different object types,
each object type also has a collection of the other 2 types,
such that if one object contains another then the reverse
is always true, a many to many relationship.

the objects are 3d objects making up a wire mesh model,
points,wire,surfaces.

im not sure wich is the best way to go,
it kind of needs a tree structure,
but it also has a datagrid type of structure too,
so is it a tree of grids or a grid of trees?

obviously the whole thing is totally recursive,
so the depth would be limited to something sensible like 3,
this kinda makes it more grid like.

The rest of the application ive done with
3d wireframe view/editing with XNA,
but im new to this sort of advanced control,
ive made my own tree/dir structure before,
but long long ago when the controls were rather limited,
(win3.1) lol.

have things move on much more?
Im trying to get to grips with the databinding,
but failing miserable, is it limited to text only data?
ive looked at a few tutorials and samples,
but its hard to see if they can be expanded,
can you have another datagrid inside another ?
maybe I should just make my own again.

for each item in the list I need to be able display the list of items in
it,
preferably in another grid view below it wich is indented,
a bit like the visual ide does with data in the debuger but
wich doesnt stack up on top of each other or disapear when you move the
mouse away.

some objects have upto 4 3d vectors wich is 12 numbers
plus I need to be able to set some flags and highlight things etc.

Any helpfull ideas tutorials,examples greatly appreciated :)

thanks
Colin =^.^=





.



Relevant Pages

  • NestedGridViews was TreeView or DataGridView ?
    ... gridview for now wich was a piece of pie - just followed a simple sample. ... third-party grid implementation that can handle this for you, ... wich is unlike most tree structures. ... a tree view control with a grid control, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: TreeView or DataGridView ?
    ... tree view control with a grid control, ... You could get a third party grid which supports heiarchical data ... preferably in another grid view below it wich is indented, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: TreeView or DataGridView ?
    ... grid implementation that can handle this for you, ... wich is unlike most tree structures. ... I wish to display and edit 3 collections of different object types, ...
    (microsoft.public.dotnet.languages.csharp)
  • TreeView or DataGridView ?
    ... I wish to display and edit 3 collections of different object types, ... this kinda makes it more grid like. ... preferably in another grid view below it wich is indented, ...
    (microsoft.public.dotnet.languages.csharp)
  • KeyPreview/KeyDown on TreeView control - Possible Bug?
    ... We have a dialog containing a treeview on the left displaying groups ... in the grid. ... Shift-F2 can still be intercepted by the form. ... We use F2 to rename a group within the tree, ...
    (microsoft.public.dotnet.framework.windowsforms)

Loading