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 in GridView

Display in GridView

Scheduled Pinned Locked Moved ASP.NET
cssdatabasewpfwcfdebugging
5 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.
  • V Offline
    V Offline
    vasini
    wrote on last edited by
    #1

    Hi, I am trying this for couple of days. But could not solve it. I am calling a stored procedure (it has 3 I/P parameters) with command object and binding to a gridview. One parameter takes multiple values (ex: 10,20,30) When I debug the application, all the values, its passing correctly. (When I run the stored procedure in the back end, its giving all the rows) But after binding to gridview, its displaying only the first value. For example, If I pass company as 120 and fund as 10,20,30 and date as 3/31/2008, the stored procedure is taking all the values. But when it displays in the grid it showing only the data of fund 10. Please help me. how can I get the values in the grid. Thank for all your help. Vasini

    B A 2 Replies Last reply
    0
    • V vasini

      Hi, I am trying this for couple of days. But could not solve it. I am calling a stored procedure (it has 3 I/P parameters) with command object and binding to a gridview. One parameter takes multiple values (ex: 10,20,30) When I debug the application, all the values, its passing correctly. (When I run the stored procedure in the back end, its giving all the rows) But after binding to gridview, its displaying only the first value. For example, If I pass company as 120 and fund as 10,20,30 and date as 3/31/2008, the stored procedure is taking all the values. But when it displays in the grid it showing only the data of fund 10. Please help me. how can I get the values in the grid. Thank for all your help. Vasini

      B Offline
      B Offline
      Blue_Boy
      wrote on last edited by
      #2

      call method DabaBind of GridView GridView1.DataBind();


      I Love SQL

      V 1 Reply Last reply
      0
      • B Blue_Boy

        call method DabaBind of GridView GridView1.DataBind();


        I Love SQL

        V Offline
        V Offline
        vasini
        wrote on last edited by
        #3

        Thanks for the reply. I have binded to the gridview. Its displaying the first value. I would like to display all the 3 or 4 ( how many I pass) in the grid. Thanks again....

        B 1 Reply Last reply
        0
        • V vasini

          Thanks for the reply. I have binded to the gridview. Its displaying the first value. I would like to display all the 3 or 4 ( how many I pass) in the grid. Thanks again....

          B Offline
          B Offline
          Blue_Boy
          wrote on last edited by
          #4

          the values 10,20,30 which u give in parameter can it be stringed? like this 10+','+','+20+','+30 then probabbly u can get result which u want in gridview.


          I Love SQL

          1 Reply Last reply
          0
          • V vasini

            Hi, I am trying this for couple of days. But could not solve it. I am calling a stored procedure (it has 3 I/P parameters) with command object and binding to a gridview. One parameter takes multiple values (ex: 10,20,30) When I debug the application, all the values, its passing correctly. (When I run the stored procedure in the back end, its giving all the rows) But after binding to gridview, its displaying only the first value. For example, If I pass company as 120 and fund as 10,20,30 and date as 3/31/2008, the stored procedure is taking all the values. But when it displays in the grid it showing only the data of fund 10. Please help me. how can I get the values in the grid. Thank for all your help. Vasini

            A Offline
            A Offline
            AlexeiXX3
            wrote on last edited by
            #5

            I you dont show your stored procedure, i dont think someone is gona be able to figure it out

            Alexei Rodriguez

            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