Pass Data From Collection base to a Dataview

G

Guest

Hi to all,

i have a class (of type collectionbase) that creates a collection of objects
for instance persons.

For other hand i have a Datagrid whose Datasource its the collection wich i
talked in last paragraph.

Until here no problem, the Grids shows to me the collection.

But i would like to be able to order the grid, and put methods to page index
change, and this kind of things. And due this reasons i would need to know
how could i pass the collection into a DataView (to sort)...

Any help would be grateful.
Regards.
Thanks

Josema
 
S

Scott Allen

Hi Josema:

The DataView filters and sorts the rows in a DataTable object. In
order to use a DataView you'd have to shove your custom collection
into a DataTable you build programatically. You might find it easier
to sort your collection before binding to the grid.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top