link tableadapter.fill and progressbar using vb.net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nev
    Contributor
    • Oct 2007
    • 251

    link tableadapter.fill and progressbar using vb.net

    i can't seem to find a clear answer on this one. i use the data designer on my program so all i have in my form load is the tableadapter.fi ll statement. now how do i link a progressbar to it?
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    This site may help you:
    AJAX : The Official Microsoft ASP.NET Site

    Comment

    • nev
      Contributor
      • Oct 2007
      • 251

      #3
      Originally posted by kenobewan
      thank you sir, i'll visit the site at once.

      Comment

      • nev
        Contributor
        • Oct 2007
        • 251

        #4
        Originally posted by kenobewan
        tried searching that site but no luck :-(

        Comment

        • Shashi Sadasivan
          Recognized Expert Top Contributor
          • Aug 2007
          • 1435

          #5
          Use an update panel, and place your grid within that.
          Also add a progress cont4rol (not sure what they exactly call it, and link it to that updatepanel) - this control is not like a progress bar, but just a general updating style of icon which would show the user a busy icon until it recieves the data from the server

          Comment

          • nev
            Contributor
            • Oct 2007
            • 251

            #6
            Originally posted by Shashi Sadasivan
            Use an update panel, and place your grid within that.
            Also add a progress cont4rol (not sure what they exactly call it, and link it to that updatepanel) - this control is not like a progress bar, but just a general updating style of icon which would show the user a busy icon until it recieves the data from the server
            sorry about my unclear inquiry. here is what i really mean.

            I have used the dataset designer for all my forms. It has generated code in my form load like these...

            private sub form_load()
            tableadapter.fi ll(dataset.data table)
            end sub

            Using what I already have, I want to add a progress bar and show progress of that fill code. I have tried searching about this on the internet but no one around the globe can give a clear answer.

            Comment

            • Shashi Sadasivan
              Recognized Expert Top Contributor
              • Aug 2007
              • 1435

              #7
              What do you exactly mean by show the progress of fill ?
              Is it showing a percentage of what the fill method has retrieved as yet?

              Im not sure if this could be achiveable, because your database backend will send all the records at once together, so you would have no way of finding out how much data has been filled.

              However once the data is recieved and is loading you could have the progress bar updating, Not sure of that again, but this thread "data adapter fill method progress status" has answered someone
              good luck
              Last edited by Shashi Sadasivan; Feb 6 '08, 01:19 AM. Reason: providing link of possible solution

              Comment

              • nev
                Contributor
                • Oct 2007
                • 251

                #8
                Originally posted by Shashi Sadasivan
                What do you exactly mean by show the progress of fill ?
                Is it showing a percentage of what the fill method has retrieved as yet?

                Im not sure if this could be achiveable, because your database backend will send all the records at once together, so you would have no way of finding out how much data has been filled.

                However once the data is recieved and is loading you could have the progress bar updating, Not sure of that again, but this thread "data adapter fill method progress status" has answered someone
                good luck
                when he said dataadapter has a rowupdated event, does he mean tableadapter? because i checked my tableadapter events it only has the disposed event.

                Comment

                • nev
                  Contributor
                  • Oct 2007
                  • 251

                  #9
                  before i the adapter tries to fill the datatable, i would like to count the number of records. i think i can look at the adapter. there's something about the executescalar() method that i think i can use.

                  Comment

                  Working...