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 values display as user needed...

Gridview values display as user needed...

Scheduled Pinned Locked Moved ASP.NET
csharpcssasp-netdatabasehelp
6 Posts 4 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.
  • C Offline
    C Offline
    codingrocks
    wrote on last edited by
    #1

    In my application, i have a 2 dropdowns , textbox and checkbox. On select of checkbox, I should enter enter value from first dropdown and second dropdown and also a value can be entered in the textbox. The checkbox is for default value, if it is checked, I should enter a value to textbox. Everything works fine now. But when i enter these values and click save, it takes value from first and second dropdowns and saves to database. I need the textbox value to be entered into grid and say the value in grid should display as follows Example : if i select customername from first dropdown and customeraccountname from second dropdown then check default checkbox, enter value in textbox as 24 the grid value saved should be displayed as Column 1 Column2 -------- -------- Customername 24[Default] The second column value is displaying as Customeraccountname only.... Any help would be thankful...

    SAJAN A PILLAI ASP.NET,C#.NET Programmer BANGALORE "Winners don't do different things. They do things differently. ...

    C N A 3 Replies Last reply
    0
    • C codingrocks

      In my application, i have a 2 dropdowns , textbox and checkbox. On select of checkbox, I should enter enter value from first dropdown and second dropdown and also a value can be entered in the textbox. The checkbox is for default value, if it is checked, I should enter a value to textbox. Everything works fine now. But when i enter these values and click save, it takes value from first and second dropdowns and saves to database. I need the textbox value to be entered into grid and say the value in grid should display as follows Example : if i select customername from first dropdown and customeraccountname from second dropdown then check default checkbox, enter value in textbox as 24 the grid value saved should be displayed as Column 1 Column2 -------- -------- Customername 24[Default] The second column value is displaying as Customeraccountname only.... Any help would be thankful...

      SAJAN A PILLAI ASP.NET,C#.NET Programmer BANGALORE "Winners don't do different things. They do things differently. ...

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      sajan ss wrote:

      ASP.NET,C#.NET Programmer

      Hmm.....

      sajan ss wrote:

      Customername 24[Default]

      I'm not sure I understand. You say it's saving fine, so what bit do you need to add ? The word default by the number ? What is it you're having trouble with exactly ? You've defined your need OK, but then you've said 'everything works fine now'. So, what's the issue ?

      Christian Graus Driven to the arms of OSX by Vista.

      C 1 Reply Last reply
      0
      • C Christian Graus

        sajan ss wrote:

        ASP.NET,C#.NET Programmer

        Hmm.....

        sajan ss wrote:

        Customername 24[Default]

        I'm not sure I understand. You say it's saving fine, so what bit do you need to add ? The word default by the number ? What is it you're having trouble with exactly ? You've defined your need OK, but then you've said 'everything works fine now'. So, what's the issue ?

        Christian Graus Driven to the arms of OSX by Vista.

        C Offline
        C Offline
        codingrocks
        wrote on last edited by
        #3

        I need the second column value to be displayed in the way I said. It showing as CustomerName and CustomerAccountName now.... I want it to be in CustomerName and 24[Default]

        SAJAN A PILLAI ASP.NET,C#.NET Programmer BANGALORE "Winners don't do different things. They do things differently. ...

        C 1 Reply Last reply
        0
        • C codingrocks

          In my application, i have a 2 dropdowns , textbox and checkbox. On select of checkbox, I should enter enter value from first dropdown and second dropdown and also a value can be entered in the textbox. The checkbox is for default value, if it is checked, I should enter a value to textbox. Everything works fine now. But when i enter these values and click save, it takes value from first and second dropdowns and saves to database. I need the textbox value to be entered into grid and say the value in grid should display as follows Example : if i select customername from first dropdown and customeraccountname from second dropdown then check default checkbox, enter value in textbox as 24 the grid value saved should be displayed as Column 1 Column2 -------- -------- Customername 24[Default] The second column value is displaying as Customeraccountname only.... Any help would be thankful...

          SAJAN A PILLAI ASP.NET,C#.NET Programmer BANGALORE "Winners don't do different things. They do things differently. ...

          N Offline
          N Offline
          Nishant Singh
          wrote on last edited by
          #4

          Are you writing JavaScript on Check-Uncheck of Check Box ? It seems somewhere you are assigning wrong values, Try to Debug the code and find out where wrong values are getting assigned to Value in the grid

          1 Reply Last reply
          0
          • C codingrocks

            In my application, i have a 2 dropdowns , textbox and checkbox. On select of checkbox, I should enter enter value from first dropdown and second dropdown and also a value can be entered in the textbox. The checkbox is for default value, if it is checked, I should enter a value to textbox. Everything works fine now. But when i enter these values and click save, it takes value from first and second dropdowns and saves to database. I need the textbox value to be entered into grid and say the value in grid should display as follows Example : if i select customername from first dropdown and customeraccountname from second dropdown then check default checkbox, enter value in textbox as 24 the grid value saved should be displayed as Column 1 Column2 -------- -------- Customername 24[Default] The second column value is displaying as Customeraccountname only.... Any help would be thankful...

            SAJAN A PILLAI ASP.NET,C#.NET Programmer BANGALORE "Winners don't do different things. They do things differently. ...

            A Offline
            A Offline
            Abhijit Jana
            wrote on last edited by
            #5

            Did you try to do it yourself? Or want some one do things for you. Did you written any line of code?

            cheers, Abhijit My Recent Article : Beginner's Guide to ASP.NET Application Folder

            1 Reply Last reply
            0
            • C codingrocks

              I need the second column value to be displayed in the way I said. It showing as CustomerName and CustomerAccountName now.... I want it to be in CustomerName and 24[Default]

              SAJAN A PILLAI ASP.NET,C#.NET Programmer BANGALORE "Winners don't do different things. They do things differently. ...

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              Is 24 the account name ? I think you're saying you need to check if the textbox has a value, and if so, to insert that, but the task is so trivial and your explanation so longwinded, that I really don't know what the issue is

              Christian Graus Driven to the arms of OSX by Vista.

              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