How to get sorted rows from datagrid?

B

Brett Romero

I'm binding a DataTable to a datagrid. I'd like the DataTable to use
any kind of sort the datagrid is using so the two stay in synch. When
some one clicks a data column header and sorts the grid, I want the
underlying DataTable to be sorted. I've tried referencing DefaultView
on the DataTable but it is never sorted. How can I get it to sort?

Thanks,
Brett
 

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