Select Current Row Position in DataSet
===

I want to Select Current Row Position in DataSet but without any loops, it's possible I know but i got stuck....

First I declare a DataTable and fill it with data:

 

    DataTable dr_art_line_2 = ds.Tables["QuantityInIssueUnit"];

And then there is a if loop in witch I have this code:

 

    if (dr_art_line_2.Rows.Count > 0)
    {
    
       int ID_line = (int)ds.Tables["Line"].Select()[0]["Line_Id"];
       int ID = (int)ds.Tables["QuantityInIssueUnit"].Select()[ID_line]["Line_Id"];
    
       QuantityInIssueUnit_value = Convert.ToString(dr_art_line_2.Rows[ID] ["QuantityInIssueUnit_Text"]);
       QuantityInIssueUnit_uom = Convert.ToString(dr_art_line_2.Rows[ID]["uom"]);
    
    }
    else
    {
        QuantityInIssueUnit_value = "";
        QuantityInIssueUnit_uom = "";
     }

 I have problem here:
 

    int ID_line = (int)ds.Tables["Line"].Select()[0]["Line_Id"];
    int ID = (int)ds.Tables["QuantityInIssueUnit"].Select()[ID_line]["Line_Id"];

 I want to select "Line ID", that's ok but ID_line has to increment by one on each  iteration, is there a way to make some kind of select of something else?

 Thanks!
    
 