Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
400
Re: Hide band nodes in a wintree bound to a dataset
posted

Thanks for the reply mike.
       I was able to achieve the desired UI display by binding to the nodes in
Initialize node event - instead of relying on relationships of the dataset. 
I have attached the sample application and also the image.  However I am not
sure whether the approach taken is correct or optimal, please review the
sample and give your valuable feedback. Also, suggest if there is any different way of arriving at the same Tree display.

Note: I had posted this in the earlier version of the Forum, but I am not sure whether that is still used.  I dont know how to attach samples, so below is the link through which the sample can be accessed http://news.infragistics.com/readmessage?id=%3C47a06fb9$78f64ba1$532d4@news.infragistics.com%3E&group=infragistics.products.netadvantage.windowsforms.wintree 

Thanks in advance,

spm


Mike S. [Infragistics] wrote in message news:2f29ee51$a8d9269
$58f3f@news.infragistics.com...
>Hi Christer,
>
>    There's a ShowBandNodes property on the tree. But any time you have
>sibling bands, the tree has to have Band Nodes in order to separate them.
>There is no way to remove these, and it would not make sense to do so, since
>you would have data from two different tables in the same collection of
>nodes.
>    Regarding keeping the columns in synch, what you would need to do is use
>the same ColumnSet. By default, the tree's AutoGenerateColumnSets (on the
>ColumnSettings) is true, so it will create column sets and associate them
>with nodes based on the name of the band. But you could turn this off and
>create your own ColumnSet and assign it to the Override you want to affect
>whichever nodes you want.
>    Creating a ColumnSet is a bit tricky, though, as you must include
>chaptered columns. You might want to put a breakpoint in your code (perhaps
>in the ColumnSetGenerated event) and examine the automatically generated
>column sets so you can see what columns exist there so you know what to
>create in your own ColumnSet.
>
>"Christer H" wrote in message
>news:47a06fb9$78f64ba1$532d4@news.infragistics.com...
>> Hi,
>>    We are currently evaluating WinTree for support of Heterogenous
>> structure.  To do this we have bound the Tree to a dataset with two
>> tables,
>> namely SheetTable and PRLayer table.  The following relationship is
>> defined
>> in the dataset:
>> 1) "SheetTable" relation: Self-referencing relationship defined on
>> SheetTable
>> to achieve the parent child structure
>> 2) "PRLayer" relation: This is a relation which supposed to relate leaf
>> nodes
>> of the SheetTable records with records from PRLayer table.
>>
>> The WinTree correctly shows the hierarchial structure, but some additional
>> unnecessary nodes are shown with the relation name.  Is there anyway to
>> hide
>> this band nodes?
>>
>> Also is there anyway to instruct the wintree such that the nodes derived
>> from
>> the same table would have a same column settings such as width, sort
>> etc..?
>>
>> I have attached a sample code in a zip format containing also an image
>> describing the nodes that needs to be hidden, please give your feedback on
>> the above.
>>
>> Thanks a lot in advance,
>> spm
>>
>>
>
>
>-----------------------------------------------------------------------------
---
>
>
>>
>>
>> Message was originally posted to
>> infragistics.products.netadvantage.windowsforms.wintree