Hi,
We've a requirement to retrieve huge dataset and populate into ultrawingrid.
It'll first load a summary dataset and display it in ultrawingrid in a group by state. When user click on "expand row", it'll go back to the database to fetch the underlying data for that summary row.
Purpose of doing that is, of course performance, since we don't want to fetch a large dataset from the server.
How can it this be implemented?
Thanks in advance.
One technique you can use is to create a representation of your data model using the UltraDataSource (also known as WinDataSource).
WinDataSource is a component that allows you to define a schema that represents your data model so that you can bind it to WinGrid and then programmatically interact with the WinDataSource API to achieve a load-on-demand functionality in your app.
Here is the documentation for WinDataSource:
http://help.infragistics.com/NetAdvantage/WinForms/2010.3/CLR2.0/?page=WinDataSource.html
Another valuable resource that shows how to work with WinDataSource and WinGrid is the following sample. Please download the Windows Forms samples from your login account (directions here) and check out the following sample when you run the Sample Browser:
The approach you can take is: