Sorting DataTable without DataView

  • Thread starter Thread starter maciek kanski
  • Start date Start date
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.
 
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
 
Back
Top