首页上一页 1 下一页尾页 1 条记录 1/1页
关于取值的问题
发表在C#图书答疑
2010-06-10
是否精华
是
否
版块置顶:
是
否
各位老师好,有个问题向老师请教:
public static ArrayList ArryDictData = new ArrayList();
string strCode = datagridview1.Rows[i].Cells[1].Value.ToString().Trim();
string strName = datagridview1.Rows[i].Cells[2].Value.ToString().Trim();
string strSqec = datagridview1.Rows[i].Cells[3].Value.ToString().Trim();
string[] row = new string[] { strCode, strName};
ArryDictData.Add(row);
然后我怎么从ArryDictData中把strCode,strName的值分别读取出来?
public static ArrayList ArryDictData = new ArrayList();
string strCode = datagridview1.Rows[i].Cells[1].Value.ToString().Trim();
string strName = datagridview1.Rows[i].Cells[2].Value.ToString().Trim();
string strSqec = datagridview1.Rows[i].Cells[3].Value.ToString().Trim();
string[] row = new string[] { strCode, strName};
ArryDictData.Add(row);
然后我怎么从ArryDictData中把strCode,strName的值分别读取出来?