User Control Problem
-
I have hierarchical data that the user can make one of four choices about. The primary treeview manages @900 rows of data that collapsed to @100 groups. I need to draw a tree view with a 'radio button group' where the radio buttons are related to the treeview node index. I have made a User Control for the 4 radio button but can't quite figure out: 1) How to Position the radiobuttons to align with the tree view node 2) Linkage to connect the button data to the treeview node i.e. [a,b,c,d] tvNode1 [a,b,c,d] tvNode2 Each control is located on separate panels, panel 1 is for the radio buttons, panel 2 is for the Treeview. - Is there may be a better way??? TIA
Tom Hamilton Sacramento, CA
-
I have hierarchical data that the user can make one of four choices about. The primary treeview manages @900 rows of data that collapsed to @100 groups. I need to draw a tree view with a 'radio button group' where the radio buttons are related to the treeview node index. I have made a User Control for the 4 radio button but can't quite figure out: 1) How to Position the radiobuttons to align with the tree view node 2) Linkage to connect the button data to the treeview node i.e. [a,b,c,d] tvNode1 [a,b,c,d] tvNode2 Each control is located on separate panels, panel 1 is for the radio buttons, panel 2 is for the Treeview. - Is there may be a better way??? TIA
Tom Hamilton Sacramento, CA
I would start from an existing treeview control and set the the DrawMode-property to OwnerDrawAll, so you you don't have to bother about the complexicity of the positions. In this mode you can draw your buttons instead of the existing signs in the treeview. Does this help your problem?