DBGRID does not output result

2

I have a table that has data registered in SQLServer , but in the application they do not appear in dbgrid .

DATASOURCdo dbgrid -> UDM.DSPecas_ordem_servico

When you open the form:

procedure TFMHome.lbl_BuscosClick(Sender: TObject);
begin
  UDM.ADODSPecas_ordem_servico.Open;
  FMAltOs.showmodal;
end;
    
asked by anonymous 24.11.2015 / 15:50

1 answer

2

There's no mistake, unless it's the links. Check if this is all right:

DataSource ---ligado---> ADODSPecas_ordem_servico
DbGrid   -----ligado---> DataSource 

Being ADODSPecaseservice is a valid DataSet (the one you are giving Open). And the DataSource has to be connected to this DataSet .

Make one also check in the Connection Trio:

Conexão>>DataSet>>DataSource (se possuir DataSet+Provider também conferir).
    
24.11.2015 / 17:10