Reads the next row of the result set and moves the AseDataReader to that row.
bool Read( )
Returns true if there are more rows. Otherwise, it returns “false”.
IDataReader.Read
The default position of the AseDataReader is prior to the first record. Therefore, you must call Read to begin accessing any data.
The following code fills a list box with the values in a single column of results:
while( reader.Read() ) { listResults.Items.Add( reader.GetValue( 0 ).ToString() ); } listResults.EndUpdate(); reader.Close();