Dear all,
I am trying to display a list of user settings in an UltraWinGrid. What I require is two level of nodes, section and sub-section, under which there are rows of the same options (which involves a combo box and check boxes). Basically I am needing to combine an UltraTree and an UltraWinGrid.
By setting the ViewStyleBand to be OutlookGroupby I am able to get the desired look, however I'd like to prevent the user from altering the grouping i.e. hide the bit to which you drag the columns and I'd also like to have a 'summary' row for each subsection and section to allow the user to set all the check boxes\combo selections within that region. The options within the combo box are always the same as are the selection of checkboxes available.
I think now I may be barking up the wrong tree and that what I want to do is not possible, but using an UltraTree produces ugly looking results by comparison. The summary functionality whilst good does not, as far as I can see, allow me to put in a check box or a combo box.
Clearly what I want is possible, but how?
Thanks in advance.
Hello there,
You could get rid of the GroupBy area by setting the Hidden property of the GroupByBox to true, like this:
ultraGrid1.DisplayLayout.GroupByBox = true;
As to the summaries and the setting of all checkboxes of the combo I need a screenshot which illustrates it.
Thank you in advance!
Here is the other image, I forgot to attach
Oh... one thing I forgot to mention. If all you need is a Check/uncheck all, then you could do this by placing checkboxes in the column headers. The grid supports this natively in the latest version. It does not have any support for showing a dropdown list or doing more complex editing in the column headers, though.
Thanks for that Mike, sounds like it would be too much work in the time I have.
Is there any other way I could achieve what I'm after, without using the GroupBy functionality? i.e. basically a treeview combined with an ultragrid and the ability to set values for all child nodes when it's parent node value is set.
I don't see any easy way to do this using a summary or an extra row like you have here.
You could probably achieve this pretty easily using a context menu. But I don't know if that fits your requirements.
What about via an UltraTree Mike? The summary nodes were only a way to get the set all functionality when doing a group by.
Essentially the same as the VS2010 exceptions settings window is what I'd like (see the attached image). A tree structure (with 3 levels) and for each node/leaf a series of check boxes and a combo box. As shown in the image a node check box reflects the status and sets the child nodes setting. If that was easily achievable for a combo box then great but to program that by hand wouldn't be too hard.
Hi,
Seems like this should be doable in the tree, but you mentioned you tried that and couldn't get it to work. What's the problem with using the tree? The tree is more flexible, since you can add the nodes in manually and you don't have to use data binding. You could even add the category nodes yourself and then bind the child list.
Hello,
Please let us know if you face any issues with implementing that with the tree by opening a new forum thread in the Tree section.
I'll give it another bash without binding
I think my problem was that I was binding the tree to the datasource, which is flat in nature, and was having trouble getting the 'parent' nodes correct