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. Gridview

Gridview

Scheduled Pinned Locked Moved ASP.NET
cssdatabasehelp
10 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.
  • M Offline
    M Offline
    Mathew P V
    wrote on last edited by
    #1

    is it possible to display the records in a grid view with the help of writing the codes in the aspx.cs page if yes kindly give some links where i can refer to the reason is because its not showing the records that i want so i want it to be displayed so i thought of writing the query in .cs page and display manually without the use of datasource.

    modified on Saturday, June 6, 2009 1:59 AM

    B P C 3 Replies Last reply
    0
    • M Mathew P V

      is it possible to display the records in a grid view with the help of writing the codes in the aspx.cs page if yes kindly give some links where i can refer to the reason is because its not showing the records that i want so i want it to be displayed so i thought of writing the query in .cs page and display manually without the use of datasource.

      modified on Saturday, June 6, 2009 1:59 AM

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

      Which control are you using to display data? Do you mean showing help in tooltip on each record?


      I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.

      1 Reply Last reply
      0
      • M Mathew P V

        is it possible to display the records in a grid view with the help of writing the codes in the aspx.cs page if yes kindly give some links where i can refer to the reason is because its not showing the records that i want so i want it to be displayed so i thought of writing the query in .cs page and display manually without the use of datasource.

        modified on Saturday, June 6, 2009 1:59 AM

        P Offline
        P Offline
        padmanabhan N
        wrote on last edited by
        #3

        GridView all in one[^]

        Padmanabhan

        M 1 Reply Last reply
        0
        • M Mathew P V

          is it possible to display the records in a grid view with the help of writing the codes in the aspx.cs page if yes kindly give some links where i can refer to the reason is because its not showing the records that i want so i want it to be displayed so i thought of writing the query in .cs page and display manually without the use of datasource.

          modified on Saturday, June 6, 2009 1:59 AM

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

          Mathew P V wrote:

          the reason is because its not showing the records that i want so i want it to be displayed so i thought of writing the query in .cs page and display manually without the use of datasource.

          WEll, perhaps you need to post your code, so we can see what you're doing wrong. If you're binding to a datasource, then the records will show, so long as your control itself is visible.

          Christian Graus Driven to the arms of OSX by Vista. Please read this[^] if you don't like the answer I gave to your question. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.

          M 1 Reply Last reply
          0
          • C Christian Graus

            Mathew P V wrote:

            the reason is because its not showing the records that i want so i want it to be displayed so i thought of writing the query in .cs page and display manually without the use of datasource.

            WEll, perhaps you need to post your code, so we can see what you're doing wrong. If you're binding to a datasource, then the records will show, so long as your control itself is visible.

            Christian Graus Driven to the arms of OSX by Vista. Please read this[^] if you don't like the answer I gave to your question. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.

            M Offline
            M Offline
            Mathew P V
            wrote on last edited by
            #5

            i have not started writing code for grid view i did was using the datasource for retreiving values the sql query is as follows SELECT DISTINCT LeaveMaster.LeaveType, LeaveAllotted.NoOfDays FROM LeaveMaster INNER JOIN LeaveAllotted ON LeaveMaster.LeaveTypeID = LeaveAllotted.LeaveTypeID INNER JOIN EmpCategType ON LeaveAllotted.EmpCategID = EmpCategType.EmpCategID INNER JOIN GeneralInfo ON EmpCategType.EmpCategID = GeneralInfo.EmpCategID INNER JOIN GenderMaster ON LeaveAllotted.GenderID = GenderMaster.GenderID AND GeneralInfo.GenderID = GenderMaster.GenderID the problem because there are both male and females staffs in my GeneralInfo table its showing both leaves for both the employees infact it should should male leave to males and female leaves to female

            C 1 Reply Last reply
            0
            • P padmanabhan N

              GridView all in one[^]

              Padmanabhan

              M Offline
              M Offline
              Mathew P V
              wrote on last edited by
              #6

              thanks for the link i am studying i could not open the project as i have to install vs2005 in my system i will check that as soon as possible once again thanks for the link it is so usefull for a fresher like me

              1 Reply Last reply
              0
              • M Mathew P V

                i have not started writing code for grid view i did was using the datasource for retreiving values the sql query is as follows SELECT DISTINCT LeaveMaster.LeaveType, LeaveAllotted.NoOfDays FROM LeaveMaster INNER JOIN LeaveAllotted ON LeaveMaster.LeaveTypeID = LeaveAllotted.LeaveTypeID INNER JOIN EmpCategType ON LeaveAllotted.EmpCategID = EmpCategType.EmpCategID INNER JOIN GeneralInfo ON EmpCategType.EmpCategID = GeneralInfo.EmpCategID INNER JOIN GenderMaster ON LeaveAllotted.GenderID = GenderMaster.GenderID AND GeneralInfo.GenderID = GenderMaster.GenderID the problem because there are both male and females staffs in my GeneralInfo table its showing both leaves for both the employees infact it should should male leave to males and female leaves to female

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

                OK, so your SQL needs fixing ? Your problem has nothing to do with the gridview then ?

                Christian Graus Driven to the arms of OSX by Vista. Please read this[^] if you don't like the answer I gave to your question. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.

                M 1 Reply Last reply
                0
                • C Christian Graus

                  OK, so your SQL needs fixing ? Your problem has nothing to do with the gridview then ?

                  Christian Graus Driven to the arms of OSX by Vista. Please read this[^] if you don't like the answer I gave to your question. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.

                  M Offline
                  M Offline
                  Mathew P V
                  wrote on last edited by
                  #8

                  kindly tell me how to display the records in a gridview by writing code in the .cs page or send me a link which have the description related to this a reply from you will be deeply appreciated

                  B C 2 Replies Last reply
                  0
                  • M Mathew P V

                    kindly tell me how to display the records in a gridview by writing code in the .cs page or send me a link which have the description related to this a reply from you will be deeply appreciated

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

                    Take a look this example.[^]


                    I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.

                    1 Reply Last reply
                    0
                    • M Mathew P V

                      kindly tell me how to display the records in a gridview by writing code in the .cs page or send me a link which have the description related to this a reply from you will be deeply appreciated

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

                      Do you not own any references on ASP.NET ? Does google not work where you live ? EIther you're not explaining this right ( possible, as the only code you've posted is SQL ), or you're struggling with something quite trivial.

                      Christian Graus Driven to the arms of OSX by Vista. Please read this[^] if you don't like the answer I gave to your question. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.

                      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