GetList method

Description

Implements IListSource.

Syntax

IList GetList();

Implements

IListSource

Usage

Allows you to set the DataSource property of the .NET DataGrid object to the AseDataReader. The grid then uses this method to bind the results from the AseDataReader directly to its cells.Typically, you would not directly use this method. As AseDataReader implements this method, it allows you to do the following:

using(AseCommand cmd = new AseCommand(select total_sales from titles 
   where title_id = 'BU1032', conn)
{
   using(AseDataReader rdr = cmd.ExecuteReader())
   {
      MyGrid.DataSource = rdr;
   }
}