public DataSet GetAllcarDetails() {
DataSet ds = new DataSet(); ds = sqlClientConn.ltDataSet(ltSqlParams); return ds;
//for (int i = 0; i < ds.Tables[0].Rows.Count; i++) //{ // list = ds.Tables[0].AsEnumerable().Select(r => r.Field<string>("Voucher_No")).ToList(); // //}
List<string> voucherList = new List<string>(); foreach(DataRow dr in ds.Tables[0].Rows) { voucherList.Add(dr["Voucher_No"].Tostring()); } // do something with the voucherList</string></string>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)