I have the following values in my dataview dv :
1,2,0,4,2,1,0,0
I would like to sort it in ascending order while keeping the 0 values to the last, something like this :
1,1,2,2,4,0,0,0
I am currently doing this :
DataSet ds = (DataSet)Session["test"];
DataTable dt = ds.Tables[0];
DataView dv = new DataView(dt);
dv.Sort = "Value";
This gives me the following output :
0,0,0,1,1,2,2,4
Is there a way I can get the 0 values to the last ?
I have also tried using the dv.RowFilter
but that excludes the 0's completely. I would like to include
the 0's. Is there a way I can do this ?