Treeview control in a datagrid

  • Thread starter Thread starter Victor
  • Start date Start date
V

Victor

Hello,

I´d like to present a datagrid with several column, where
the first one is a treeview. In this way, when the user
open a row clicking "+", the rest columns data are
presented.
How can I get it?

thanks in advance.

Victor
 
Scot,

Thanks,
Use Treeview wiht listview maybe have two difficulties:
- The Y position of text of both controls.
- How to syncronize both controls when the user use the
scrolls.
What do you thing?

For the moment, I am designing, using a datagrid and
trying to present on the first column as a treeview.

other idea?

Victor
-----Original Message-----
The Datagrid control isn't going to allow anything like
this. Perhaps you could set up something in an explorer
type configuration using the Treeview and Listview
controls...
Want to know more? Check out the MSDN Library at
http://msdn.microsoft.com or the Microsoft Knowledge Base
at http://support.microsoft.com
 
Not sure what you mean about the Y position.. The text does not line up? As far as scrolling, you would have to manually code the scroll handling, there would be no way to 'tie'
them together.. You could do something similar with the Treeview and the Grid but the Treview could not be contained in teh grid, but again you would have to handling the scrolling
yourself.

Want to know more? Check out the MSDN Library at http://msdn.microsoft.com or the Microsoft Knowledge Base at http://support.microsoft.com

Scot Rose, MCSD
Microsoft Visual Basic Developer Support
Email : (e-mail address removed) <Remove word online. from address>

This posting is provided “AS IS”, with no warranties, and confers no rights.




--------------------
 
Victor said:
I´d like to present a datagrid with several column, where
the first one is a treeview. In this way, when the user
open a row clicking "+", the rest columns data are
presented.

I have not used the data grid myself, but I think you
can use nested data grids to view related tables.
Maybe this functionality would be sufficient for you.
 
Back
Top