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.
Loading
Suthish NairPosted Oct 7, 2010, 8:53 AM
you need to dynamically create a datatable with Amount column of Number/int DataType and add rows.
vipin sainiPosted Oct 7, 2010, 8:20 AM
DataTable clone = new DataTable();
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 NairPosted Oct 7, 2010, 8:11 AM