Is there virtual mode for the grid?
I mean, is it possible that the grid will load rows on user demand.
So not all the rows will be loaded at once, but only the rows that the user sees will be loaded.
There's a property on the grid called LoadStyle (on the DisplayLayout).
However, this property will not do you much good unless your data source also supports loading data on-demand. The UltraDataSource component does this and there is a sample included with NetAdvantage which loads a million rows into the grid on-demand.
If I understand correctly, I cant use the standard microsoft BindingSource.
I have to use UltraDataSource .
And in UltraDataSource, I must define my data source in design time.
But first it is very clumsy to define it in design time, and also many time we dont know
the datasource in design time, and define it in runtime.
I do not understand what you mean. There is no such limitation. You can create columns and rows in the UltraDataSource at design-time using it's designer, or at run-time in code.
A BindingSource and a DataTable have nothing to do with it - although you can use the UltraDataSource as the data source of a BindingSource if you like.
I have a datatable with data. I want to use an ultrabindingsource as a source for the grid.
I want to set the datatable as a source to the ultrabindingsource,
And so to be able to load on demand, the data in the datatable,
All this in runtime.
I'm sorry, but your posts seem to be getting less and less clear. What is UltraBindingSource? I am not familiar with any such class.
Do you mean UltraDataSource?
If so, then what is your question? There are samples included with NetAdvantage of using the UltraDataSource with a grid in on-demand mode. The sample is called the Million Rows sample. The sample doesn't get the data from a datatable, it just generates random numbers. In fact, using a DataTable is somewhat pointless, since a DataTable itself does not have any good way to load data on demand. And if you are loading all of the data into the DataTable, anyway, you might as well just bind it directly to the grid.
Thanks. that answered my question.
You mentioned samples.
We installed Infragistics, and also have downloded the help.
But we dont have samples.
Can we download the samples? Or how can we get them?
The samples install with NetAdvantage, although I beleive the installer gives you the option not to install them.
If you can't find them, I recommend that you Submit an incident to Infragistics Developer Support and they should be able to help you.