啥意思
没明白List<string> list = new List<string>();
foreach(DataRow row in dt.Rows)
{
    list.Add(row["ID"].ToString());
}
string[] ids = list.ToArray();

解决方案 »

  1.   

    不太明白你说什么,
    如果一行有多个字段
    可以做个结构,然后保存到结构数组里
    public struct PeopleFlux 
    {
        int ID;
        string Name;
    }先获取记录数len然后
    PeopleFlux n=new PeopleFlux[len];
    for赋值
      

  2.   

    不是很明白你要什么,不过我来猜猜1:用rows.count得到记录数,
    2: 用for循环显示,摄像头1 摄像头2 摄像头3 摄像头4 摄像头5 摄像头6