Re: TreeView or DataGridView ?



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 ?
    ... what I realy need is a grid with sub grids, ... wich is unlike most tree structures. ... I wish to display and edit 3 collections of different object types, ...
    (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)
  • Re: Dire TreeView performance in .Net 2.0 vs 1.1
    ... I did give this control a quick look. ... perspective rather than the particular way I use the tree. ... secs (with BeginUpdate and updating .Text) ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: How to fire an event
    ... I have an Infragistic datagrid control, ... The button click event is being raised upon a post-back to the server. ... manipulating the grid in script would cause a server event to be raised. ... The problem here is that I have no idea whether the grid will raise the ...
    (microsoft.public.dotnet.languages.csharp)

Loading