Dear Mr.Iqbal
   
  Thanks for your guidance but unfortunately
  the command isn't correct and get error please attention I need connection 
and view and
  edit data in Delphi.NET .
   
  I hope to use of your help.
   
  BR
  Mehdi
  

iqbal_delphidev <[EMAIL PROTECTED]> wrote:
          here is a complete example for you:

myConnection: TADOConnection;
myDataSet: TADODataSet;
myDataSource: TDataSource;
myDBGrid: TDBGrid;

{Properties for myConnection}
myConnection.ConnectionString := 'Connection strin to your DataBase';

{Properties for myDataSet}
myDataSet.Connection := myConnection;

{Properties for myDataSource}
myDataSource.DataSet := myDataSet;

{Properties for myDBGrid}
myDBGrid.DataSource := myDataSource;

Friend use the above linked properties. And try to see.....
Thanks
Iqbal
--- In [email protected], "mehdi asadi" <[EMAIL PROTECTED]> wrote:
>
> please help me how we can connected DataGrid to table in SQL and 
> insert data and edit.
> how I used [SqlCommand ,SqlConnection,DataSet]compnent.
>



                           

       

[Non-text portions of this message have been removed]

Reply via email to