Treeview nested in GridView

I have dynamically added a TreeView to a cell in a GridView control. The problem is that the initial entry in the first node of the TreeView can be quite long. When the page is displayed, the TreeView increases the size of my GridView column width because the first node doesn't wrap to the next row.

When I view the original HTML, the table cell generated by the TreeView for the first node looks like this:

<td style="white-space: nowrap;"> </td>

      

The styling is generated dynamically using the TreeView control and I am wondering how can I override this?

I've tried using CSS, but I believe the inline code overrides everything in the CSS?

+1


source to share


1 answer


Set the NodeWrap property to True when you create the TreeView. This will stop the CSS generation.



+2


source







All Articles