C
Cliff
in the table:
dt.Columns.Add("Session Duration Seconds",
System.Type.GetType("System.Int32"));
---------------
then the following code to try and sort the table based on that colum
-------------
dv = new DataView(ds.Tables["vpninfo"]);
dv.Sort = "Session Duration Seconds";
foreach (DataRowView dr in dv)
{
Debug.WriteLine(dr["Session Duration Seconds"]);
}
--------------
The output from the debug line
1002
10290
10378
105996
1061542
109
1111
1128591
1136
11483
1164
now I know thats not in order of size.....its in alphabetical order!
how can it get this to sort properly?
Any help appreciated...this one's driving me NUTS!
Cliff Dabbs
dt.Columns.Add("Session Duration Seconds",
System.Type.GetType("System.Int32"));
---------------
then the following code to try and sort the table based on that colum
-------------
dv = new DataView(ds.Tables["vpninfo"]);
dv.Sort = "Session Duration Seconds";
foreach (DataRowView dr in dv)
{
Debug.WriteLine(dr["Session Duration Seconds"]);
}
--------------
The output from the debug line
1002
10290
10378
105996
1061542
109
1111
1128591
1136
11483
1164
now I know thats not in order of size.....its in alphabetical order!
how can it get this to sort properly?
Any help appreciated...this one's driving me NUTS!
Cliff Dabbs