Re: TreeView or DataGridView ?
- From: "Nicholas Paldino [.NET/C# MVP]" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 30 Nov 2007 15:21:03 -0500
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 =^.^=
.
- Follow-Ups:
- Re: TreeView or DataGridView ?
- From: colin
- Re: TreeView or DataGridView ?
- References:
- TreeView or DataGridView ?
- From: colin
- TreeView or DataGridView ?
- Prev by Date: How do you check to see if an object works in vs2005 standard?
- Next by Date: Re: How do you check to see if an object works in vs2005 standard?
- Previous by thread: TreeView or DataGridView ?
- Next by thread: Re: TreeView or DataGridView ?
- Index(es):
Relevant Pages
|
Loading