This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I have been looking for a control similar to the TreeListView where I do in fact have a tree of items, with properties that I would like to display in a grid. This control seems to do the trick, however I do also want to do a few things extra such as editting the text of the TreeView item (like File Explorer) and additionally placing check boxes in one or two of the columns of the list view where these checkboxes are live so to speak. I am not a complete WPF newbie, but when it comes to adding editable controls to this type of view, I am not that experienced. Just wondering if this is something you feel can be done with the TreeListView and if it can be done, should it be done? Thanks for your input John |
|
|
Hello John, Yes, this is possible with the TreeListView. What you need to do is define GridViewColumns in the Columns collection, and set each CellTemplate to a suitable DataTemplate -- a check box or a text box. (As opposed to the read-only TextBlock that we use the create the labels in the Property Grid.) These templates would be two-way-bound to the properties of the record being displayed in that row. Let me know if this is enough to get you started, or whether you need a bit more detail. By the way, if you want to go this route, may I suggest you check out our WPF Elements control suite (http://www.mindscape.co.nz/products/WpfElements/default.aspx). This includes a MulticolumnTreeView which is a little easier to use than the TreeListView, and includes full documentation and samples. |
|