DataTable objDataTable = new DataTable(); DataColumn dc; dc = new DataColumn("CustomerCode"); objDataTable.Columns.Add(dc); ViewState["ERPSystemApplicationTargetlist"] = objDataTable; DataTableo = (DataTable)ViewState["ERPSystemApplication
DataTable objDataTable = new DataTable();
DataColumn dc;
dc = new DataColumn("CustomerCode");
objDataTable.Columns.Add(dc);
ViewState["ERPSystemApplicationTargetlist"] = objDataTable;
DataTable o = (DataTable)ViewState["ERPSystemApplicationTargetlist"];
string customerCode ="111";
o.Select("CustomerCode=" + customerCode)
报错:未找到列 [111]。
请问错在哪里了。