D
David
Thought I would try one last time; if you can help,
thanks. I am trying to sort a datatable, and return the
sorted results. Not working with a datagrid, or ASP.NET.
Cannot do the sort on the database.
DataView dv = existing table view
dv.sort = "EVENT_DATE DESC"
DataTable NewTable = new DataTable();
foreach (DataRowView drv in dv)
{
DataRow Row = drv.Row;
NewTable.ImportRow(Row);
}
return NewTable
If I peek at the values of the rows during the loop
through dv, they are what I would expect after a sort.
However the end result looks the same as the existing un-
sorted table . What am I missing here?
Thanks,
David
thanks. I am trying to sort a datatable, and return the
sorted results. Not working with a datagrid, or ASP.NET.
Cannot do the sort on the database.
DataView dv = existing table view
dv.sort = "EVENT_DATE DESC"
DataTable NewTable = new DataTable();
foreach (DataRowView drv in dv)
{
DataRow Row = drv.Row;
NewTable.ImportRow(Row);
}
return NewTable
If I peek at the values of the rows during the loop
through dv, they are what I would expect after a sort.
However the end result looks the same as the existing un-
sorted table . What am I missing here?
Thanks,
David