Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting Treeview properties at runtime

Status
Not open for further replies.

NeilV

Programmer
Oct 14, 2002
117
GB
Hi,

I am trying to set the properties for a TreeView control that i create at runtime but I get the following error:

'Microsoft.Web.UI.WebControls.TreeView' does not contain a definition for 'showLines'

the code i am running is:
TreeView tree = new TreeView();
tree.showLines=false;

I can set the properties for the tree at design time by using tags and it works fine. How come it work at runtime??

help!

Neil [bluegreedy]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top