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. Web Development
  3. ASP.NET
  4. display the result dynamically in a grid at runtime

display the result dynamically in a grid at runtime

Scheduled Pinned Locked Moved ASP.NET
helpcssdatabase
6 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.
  • L Offline
    L Offline
    luckyv
    wrote on last edited by
    #1

    hi all, A problem with grid. I can edit the columns in a grid but i want to dispaly the result at runtime before updating it to the database.(eg. product of two columns should be diaplayed in the next column as soon as the user edits any one of two cols.)Pls Help:confused:

    I 1 Reply Last reply
    0
    • L luckyv

      hi all, A problem with grid. I can edit the columns in a grid but i want to dispaly the result at runtime before updating it to the database.(eg. product of two columns should be diaplayed in the next column as soon as the user edits any one of two cols.)Pls Help:confused:

      I Offline
      I Offline
      Ista
      wrote on last edited by
      #2

      Create a computed column with the DataView and bind to that column 1 line of code equals many bugs. So don't write any!!

      L 1 Reply Last reply
      0
      • I Ista

        Create a computed column with the DataView and bind to that column 1 line of code equals many bugs. So don't write any!!

        L Offline
        L Offline
        luckyv
        wrote on last edited by
        #3

        Hi Ista, Thanx.Can you please give me the details how to create a computed column. Thanx in advance. lucky

        I 1 Reply Last reply
        0
        • L luckyv

          Hi Ista, Thanx.Can you please give me the details how to create a computed column. Thanx in advance. lucky

          I Offline
          I Offline
          Ista
          wrote on last edited by
          #4

          In your datatable, create a new column and set the expression property to be your SQL computed column statement. Nick 1 line of code equals many bugs. So don't write any!!

          L 1 Reply Last reply
          0
          • I Ista

            In your datatable, create a new column and set the expression property to be your SQL computed column statement. Nick 1 line of code equals many bugs. So don't write any!!

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

            Hi nick, I want to dispaly the result as soon as i change the values of other textboxes. Not from dataset and database.I should do that with out any click or update. Plz help Thanks Lucky

            I 1 Reply Last reply
            0
            • L luckyv

              Hi nick, I want to dispaly the result as soon as i change the values of other textboxes. Not from dataset and database.I should do that with out any click or update. Plz help Thanks Lucky

              I Offline
              I Offline
              Ista
              wrote on last edited by
              #6

              Well when you update the values the computed column automatically changes the values. So, lets re-iterate this. When the values from column A or B change then you should rebind "MyGrid.DataBind();". This will update the values. Nick 1 line of code equals many bugs. So don't write any!!

              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