Hello
I'm looking to switch to Infragistics ASP.NET Ajax controls from some other leading vendor in asp.net controls. I have a specific requirement in tree view control where I need to build the hierarchical tree view by binding a dataset with relations in it. But I'm not able to get started with web data tree view.
I created a datatable from northwind and binded it to the tree view and got object reference error. So in the markup i added a databinding and tried running it again but got the same error.
Here is the sample code - http://cid-3ef70212ea082a2d.office.live.com/self.aspx/.Public/IfgTreeViewSample.zip
Any ideas?
Note: I'm using the latest version (10.3.20103.1013)
Hi,
You cannot bind to a DataTable directly. You simply have to create a DataSet, add tables to it, define primaryKey for each table and finally define relations between tables. WebDataTree will create the hierarchy automatically for you.
Check this thread for more details and sample code - http://community.infragistics.com/forums/t/25889.aspx