Hi,
Is there is any other way to bind hierarchical data without creating dataset. I mean, can we use dataview?
Thanks
Mamun
You can bind WebGrid to hierarchical data, including (I believe) that returned by a DataView, by binding the grid programmatically. Set the grid's DataSource to the DataView you've returned. I suggest putting this in a handler for the grid's InitializeDataSource event - that way, it'll be set whenever it's needed, and you won't need to explicitly call DataBind() on the grid.
If you want the columns to be accessible at design-time in Visual Studio 2005 (or Visual Studio 2008), however, you won't be able to do so using older versions of the NetAdvantage for .NET toolset. VS2005 no longer has the concept of a "component" that can be placed on a webpage, like Visual Studio 2003 used to have. You can use an ObjectDataSource to get around this for flat data, but this control can't handle hierarchical data. We added WebHierarchicalDataSource to NetAdvantage for .NET 2008 Volume 2, which provides a way to get around this limitation.
Thanks for reply.
Actually I am using previous version of Infragistics and my datasource returns dataview. is it possible to bind Hierarchical data using dataview?
please let me know.
regards,
One of the easiest ways to do that without using DataSets is to use our new WebHierarchicalDataSource (WHDS) control - you can pick any flat datasource control and then link nested flat datasource in the form of hierarchy at design time - then bind UltraWebGrid to the WHDS instance.
You can find examples of that here:
http://samples.infragistics.com/2008.2/webfeaturebrowser/default.htm
(in the WebHierarchicalDataSource -> Updating Data example)