Hi ,
i want to sort dataview according to the price format(24444.50) in acesending order. please tell me the solution. i am using
dataview.sort="price asc";
but it is sort in string format and i want price format.
give me reply as soon as possible.
Dataview sorting
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Suthish NairRank #93 · 22.6K pointsPosted Oct 7, 2010, 4:11 AM EDT
vipin saini63 pointsPosted Oct 7, 2010, 4:20 AM EDT
DataView dv;
public StringReader sr;
public DataSet ds2;
sr = new StringReader(ab);
ds2 = new DataSet();
ds2.ReadXml(sr);
clone = null;
dv = ds2.Tables[13].DefaultView;
dv.Sort = "Amount Asc";
clone = dv.ToTable();
Suthish NairRank #93 · 22.6K pointsPosted Oct 7, 2010, 4:53 AM EDT
you need to dynamically create a datatable with Amount column of Number/int DataType and add rows.