Re: Trouble connecting DBGrid and ADODataSet



Alan,

Connect the TDataSource.DataSet property to your TADODataSet
Connect the TDBGrid.DataSource property to your TDataSource
Open the TADODataSet and tada, you've got data.

krf

"Alan Anderson" <ara2060@xxxxxxxxxxxxx> wrote in message
news:43cfb289$1@xxxxxxxxxxxxxxxxxxxxxxxxx
>
> Can someone tell me what I need to do to display my ADODataSet in the
> DBGrid?
>
> The DBGrid doesn't let me set its datasource as the ADODataSet. When I
> add a DataSource it doesn't allow me to set its dataset to the ADODataSet.
> I'm missing something....
>
> Thanks, Alan


.



Relevant Pages

  • Trouble connecting DBGrid and ADODataSet
    ... Can someone tell me what I need to do to display my ADODataSet in the DBGrid? ... When I add a DataSource it doesn't allow me to set its dataset to the ADODataSet. ...
    (borland.public.delphi.database.ado)
  • Re: Need ODBC Jump Start
    ... Depends on what you need exactly and how good you know ADO ... any visual components that will show data, and i would suggest to use a ... TADODataset and Datasource. ...
    (borland.public.delphi.database.ado)
  • Re: Reading XLS file
    ... I would like to populate the DBGrid with data ... >from the XLS file. ... if the Grid is connected to your dataSource and the DataSource.dataset is ... TadoDataset for the records to display. ...
    (borland.public.delphi.database.ado)
  • Re: how to limit the number of rows for Client in the TADODataset?
    ... >I need to limit the number of rows returned of a TADODataset. ... >the ADODataset make this work. ... >only the 10 first rows, then when the pointer goes to the end, the ... TclientDataset has this capability. ...
    (borland.public.delphi.database.ado)
  • Re: how to limit the number of rows for Client in the TADODataset?
    ... Dexter wrote: ... > I need to limit the number of rows returned of a TADODataset. ... > the ADODataset make this work. ...
    (borland.public.delphi.database.ado)