DataTable
from a C# web service. So, i have to convert it to ArrayList
before using..here is a code for conversion:
private ArrayList ConvertDT(ref DataTable dt) {
ArrayList converted = new ArrayList(dt.Rows.Count);
foreach (DataRow row in dt.Rows){
converted.Add(row);
}
return converted;
}
// for access
((DataRow)list[0])["startTime"].ToString()
the solution is from: http://www.dreamincode.net/forums/topic/91826-datatable-to-array/
very nice. Thanks.
YanıtlaSilTake a look into this article http://www.etechpulse.com/2012/09/convert-datatable-to-json-in-aspnet.html