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
60
UltraTree - Highlighting an entire row that active node is on
posted

The standard .net TreeView control allows you to code a solution that enables the selection of an entire row in the treeview control when a node is selected, rather than just the node text itself:

treeView.DrawNode += new DrawTreeNodeEventHandler(treeView_DrawNode);

void treeView_DrawNode(object sender, DrawTreeNodeEventArgs e)        

{                       

if ((e.State & TreeNodeStates.Selected) == TreeNodeStates.Selected)            

{                

...

                // draw node text                 TextRenderer.DrawText(e.Graphics, e.Node.Text, nodeFont, e.Node.Bounds, nodeForeColor, TextFormatFlags.Left | TextFormatFlags.Top);

 

Is there any way to do this with an UltraTree infragistics control? Currently I can't see a way to do it.

Thanks.

Parents Reply Children