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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. gridview in asp.net 2.0.

gridview in asp.net 2.0.

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelpquestion
6 Posts 3 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.
  • S Offline
    S Offline
    samerh
    wrote on last edited by
    #1

    Hi all, iam using a gridview in asp.net 2.0. my problem is that functions in RowDataBound and RowCommand are executed twice i dont know why? iam using in the gridview ButtonFields of type Image if this helps.

    N L 2 Replies Last reply
    0
    • S samerh

      Hi all, iam using a gridview in asp.net 2.0. my problem is that functions in RowDataBound and RowCommand are executed twice i dont know why? iam using in the gridview ButtonFields of type Image if this helps.

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      Have you tried debugging? Look at the call stack. How many rows are in the datagridview? RowDataBound will be fired for each one.


      only two letters away from being an asset

      S 1 Reply Last reply
      0
      • N Not Active

        Have you tried debugging? Look at the call stack. How many rows are in the datagridview? RowDataBound will be fired for each one.


        only two letters away from being an asset

        S Offline
        S Offline
        samerh
        wrote on last edited by
        #3

        I know RowDataBound will be fired for each row, but what is strange is that when i press a ButtonField of type image the code is executed twice. And so on for all ButtonFields in any gridview i create. Any suggestions?

        N 1 Reply Last reply
        0
        • S samerh

          I know RowDataBound will be fired for each row, but what is strange is that when i press a ButtonField of type image the code is executed twice. And so on for all ButtonFields in any gridview i create. Any suggestions?

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          Debug, set a breakpoint, check the call stack, etc.


          only two letters away from being an asset

          1 Reply Last reply
          0
          • S samerh

            Hi all, iam using a gridview in asp.net 2.0. my problem is that functions in RowDataBound and RowCommand are executed twice i dont know why? iam using in the gridview ButtonFields of type Image if this helps.

            L Offline
            L Offline
            linpihong
            wrote on last edited by
            #5

            i had the same problem with you, but i don't konw why.i just created a new gridview and put the ButtonField in it again, then it work well.

            S 1 Reply Last reply
            0
            • L linpihong

              i had the same problem with you, but i don't konw why.i just created a new gridview and put the ButtonField in it again, then it work well.

              S Offline
              S Offline
              samerh
              wrote on last edited by
              #6

              I have installed VS2005 service pack 1 cause i read some where that this is a bug, but never worked. I have tried ur way also but still same problem. thanks any way

              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