Sorting DataTable without DataView

M

maciek kanski

I'm using DataTable in console application and I have to sort the rows. Is it
possible to sort DataTable without using DataView.Sort property? I'm accessing
DataRow by DataTable->Rows->Item[int]
Is it possible to avoid additional layer that DataView enforces? I don't have
any logical or GUI controls that I bind data to.

Thanks in advance for any solution.
 
G

Guest

A Datatable does not change its data by filtering and sorting the data in the DataTable. Instead the DefaultView object is modified to reflect the filtering and sorting. The DataTable remains unchanged as the result of a filter and sort. So you cant directly sort a DataTable.Hope this answers your question

Shiju
MCP
 

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