troube displaying table content in a datagrid

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hello Guys

I'm having a gard time displaying a table's content in the datagris using
the designer.
Here's what I did:

I put a datagrid, a sqldataAdapter, a dataset and a sqlconnection components
on the form. I set the datagrid's datasource property to the dataset and the
datagrid datamember property to the table I want to view. I 'm that that the
connexion works fine since I can preview the output but the datagrid only
dispays the schema of the table.

I saw from in the documentation that I s should add the following line top
the form:

sqlDataAdapter1.Fill(DsCategories1)

Where exactly do I have to put it?

Thanks for any help.

Naby.



.



Relevant Pages

  • Re: troube displaying table content in a datagrid
    ... ¤ I'm having a gard time displaying a table's content in the datagris using ... ¤ the designer. ... datagrid datamember property to the table I want to view. ...
    (microsoft.public.vb.database)
  • =?iso-8859-1?Q?Re:_Datenbank_von_DataSet_zur_Laufzeit_=E4ndern?=
    ... habe und deren Daten ich dann auf einem Datagrid in einer Form verwende. ... Datenbank nicht vorhanden wäre. ... Mein Ziel war es meinem vom Designer erzeugten DataSet ...
    (microsoft.public.de.german.entwickler.dotnet.datenbank)
  • Re: DataGrid sublcassing
    ... How can I add my custom columnstyles to the designer so I can use them ... in my DataGrid at design time? ... > public class MyGrid: System.Windows.Forms.DataGrid ... > If I delete the TableStyle collection from the designer then it then works ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: best way to refresh a dataset.
    ... > that the newly inserted records will be available to my datagrid? ... Most of the time is used up by sqlserver executing the sproc. ... You should check how much time it takes for your sproc to execute. ... I never had any problems with the SqlDataAdapter. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: best way to refresh a dataset.
    ... > that the newly inserted records will be available to my datagrid? ... Most of the time is used up by sqlserver executing the sproc. ... You should check how much time it takes for your sproc to execute. ... I never had any problems with the SqlDataAdapter. ...
    (microsoft.public.dotnet.framework.adonet)