日期:2014-05-18  浏览次数:20460 次

显示多列消息(急急急急) 新手求教
IList<AirCode> arList = new IList<AirCode>();
  for (int i = 0; i < arList.Count; i++)
  {
  pwMSG.Text = arList[i].AirNum;
  pwMSG.Message = arList[i].AirName;  
  }
怎么控制它显示多条数据?

------解决方案--------------------
pwMSG.Text += arList[i].AirNum;
pwMSG.Message += arList[i].AirName;

------解决方案--------------------
IList<AirCode> arList = new IList<AirCode>();
for (int i = 0; i < arList.Count; i++)
{
pwMSG.Text += string.Format("i={0},AirNum={1} ",i,arList[i].AirNum);
pwMSG.Message += string.Format("i={0},AirName={1} ",i,arList[i].AirName);
}