Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
744
More efficiency when working with large data sets?
posted

Hello,

Most things I do have relatively small datasets, now I wish to load a large dataset and let the user do the filtering using the grids built in filters and such having all the records available to the grid.

I know there are features like lazy loading and such, but I work like this

Create ODBCConnection,DataAdapter
then fill dataset / datatable using dataadapter
finally setting the datacontext to the filled table.

I was wondering if there was a way to connect the datagrid to the dataadapter, or some other way to prevent having to load and then hold the entire dataset / datatable in memory?

Any help appreciated.

- Anthony

Parents
No Data
Reply
  • 69686
    posted

    Hello Anthony,

    I was not able to understand your requirement completely. The DataAdapter is used to fill a DataSet and transfer the data from the database. Do you mean that you want to fill the XamDataGrid with a DataAdapter directly? Probably something like this.

    Bottomline, the XamDataGrid's DataSource accepts everything that is IEnumerable. It also has DataItems collection but the data would still be in the memory. 

Children