Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Problem with update of a listview

Problem with update of a listview

Scheduled Pinned Locked Moved C#
databasedebugginghelpquestionannouncement
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    henur
    wrote on last edited by
    #1

    Hi anyone ! I have some problem with my listview. I read from database and find 10 items. I add them to listview and listview show 10 items. So... then I add one item to database and then i read database again, and find 11 items (i checked in debug mode). I add every each to the listview BUT, the listview just shows 10 items. (the one already there). Whats wrong ??? If i execute in debug mode the problems does not occur. Because it goes slower ?? or what ?? Anyone that have any ideas ? With Kind Regars Heino

    V 1 Reply Last reply
    0
    • H henur

      Hi anyone ! I have some problem with my listview. I read from database and find 10 items. I add them to listview and listview show 10 items. So... then I add one item to database and then i read database again, and find 11 items (i checked in debug mode). I add every each to the listview BUT, the listview just shows 10 items. (the one already there). Whats wrong ??? If i execute in debug mode the problems does not occur. Because it goes slower ?? or what ?? Anyone that have any ideas ? With Kind Regars Heino

      V Offline
      V Offline
      Vikram A Punathambekar
      wrote on last edited by
      #2

      henur wrote:

      then I add one item to database

      How are you doing this? Using some other program or manually, using Query Analyzer and the like? Also, are you sure your query is being committed? Posting the relevant code snippet might be useful.

      Cheers, Vikram.


      "But nowadays, it means nothing. Features are never frozen, development keeps happening, bugs never get fixed, and documentation is something you might find on wikipedia." - Marc Clifton on betas.

      Join the CP group at NationStates. Password: byalmightybob

      H 1 Reply Last reply
      0
      • V Vikram A Punathambekar

        henur wrote:

        then I add one item to database

        How are you doing this? Using some other program or manually, using Query Analyzer and the like? Also, are you sure your query is being committed? Posting the relevant code snippet might be useful.

        Cheers, Vikram.


        "But nowadays, it means nothing. Features are never frozen, development keeps happening, bugs never get fixed, and documentation is something you might find on wikipedia." - Marc Clifton on betas.

        Join the CP group at NationStates. Password: byalmightybob

        H Offline
        H Offline
        henur
        wrote on last edited by
        #3

        It's done manually. Reading a datareader and adding items by items. If i execute in debug-mode i see information about every post, even the one that is not added to the listview. Heino

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups