Results 1 to 4 of 4

Thread: ASP .NET DataGrid problem

  1. #1
    Join Date
    Dec 2004
    Posts
    159
    Rep Power
    0

    Default ASP .NET DataGrid problem

    Hi everyone,
    This is my first time so bear with me.
    I am using datagrid in my asp .net project but the problem is that when I compile the project, the datagrid is not showing. I use Drag and drop to setup the connection and dataAdapter and then generate the dataset. after that I fill the dataset and bind it to the datagrid but the Datagrid just not showing. not even the Datagrid table itself and i did check the visible property and it is set to true.
    Can anyone help me!!
    live good today cause u will never know wat will happen 2marrow and it was never promised to no man either

  2. #2
    Join Date
    Sep 2004
    Posts
    1,905
    Rep Power
    21

    Default

    Show us your code.

    Maybe you are binding after the page is rendered.
    maybe your database conection is the problem

    Also, check out the binding eg at the bottom of this page
    http://samples.gotdotnet.com/quickst...tabinding.aspx
    Let's act on what we agree on now, and argue later on what we don't.
    Black men leave Barbeque alone if Barbeque don't trouble you

  3. #3
    Join Date
    Dec 2004
    Posts
    159
    Rep Power
    0

    Default

    this is what i did to fill the datagrid

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    'Put user code to initialize the page here
    daJPSCust.Fill(DaJPS, "Customer")

    End Sub
    live good today cause u will never know wat will happen 2marrow and it was never promised to no man either

  4. #4
    Join Date
    Dec 2004
    Posts
    159
    Rep Power
    0

    Thumbs up

    Quote Originally Posted by crosswire
    Show us your code.

    Maybe you are binding after the page is rendered.
    maybe your database conection is the problem

    Also, check out the binding eg at the bottom of this page
    http://samples.gotdotnet.com/quickst...tabinding.aspx

    thanks, it worked. I did not know I had to put DataBind().
    live good today cause u will never know wat will happen 2marrow and it was never promised to no man either

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •