while reader.read
     a=reader.item("id")
end while
不能读时就是记录集的尾了

解决方案 »

  1.   

    是不是dataAdapter来读入?我是用BUTTON_ONLICK事件来上翻下翻一个数据集,就是翻页的问题
    我的QQ13465018
      

  2.   

    dim  cmicDr as DataRow=DataSet.Table(0).Rows(DataSet.Tables(0).Rows.Count-1)'这就是最后一行
      

  3.   

    读取数据索引的值就行了。比如数据有30条,你就read它
      

  4.   

    你如果是用DataReader来读
    就用:
    while reader.read
         ......
        ......
    end while如果只是用dataAdapter来Fill一个DataSet
    就用:
    for i=0 to DataSet.Tables("??").Rows.Count-1
      ....
      ....
    next
      

  5.   

    DataSet中可能有好几个表啊
    要不你设一个主表 public int GetCount()
    {
    return Tables[mainTableName].Rows.Count;
    } public void MovePrev()
    {
    if (rowIndex > 0)
    {
    --rowIndex;
    }
    } public void MoveNext()
    {
    if (rowIndex < GetCount())
    {
    ++rowIndex;
    }
    } public bool IsEOF()
    {
    return rowIndex >= GetCount();
    } public bool IsBOF()
    {
    return rowIndex <= 0;
    }