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. dummy data

dummy data

Scheduled Pinned Locked Moved ASP.NET
databasequestion
11 Posts 5 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.
  • R Rajeshwar Code Developer

    hai every body !!! i got a small doubt . how can i insert dummy data into gridview manually not bind from database.

    try and try untill reach success..

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

    With code. Why do you want to do that ? Any collection is a valid data source for a grid view.

    Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

    R 1 Reply Last reply
    0
    • C Christian Graus

      With code. Why do you want to do that ? Any collection is a valid data source for a grid view.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      R Offline
      R Offline
      Rajeshwar Code Developer
      wrote on last edited by
      #3

      Actually i m doing designing part i need to show my form with data to my boss

      try and try untill reach success..

      C 1 Reply Last reply
      0
      • R Rajeshwar Code Developer

        Actually i m doing designing part i need to show my form with data to my boss

        try and try untill reach success..

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

        Your best bet is to put dummy data in your DB, so you can show him the actual working code, not write code just for the sake of showing him a demo

        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

        R 1 Reply Last reply
        0
        • C Christian Graus

          Your best bet is to put dummy data in your DB, so you can show him the actual working code, not write code just for the sake of showing him a demo

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          R Offline
          R Offline
          Rajeshwar Code Developer
          wrote on last edited by
          #5

          the thing is i m not creating my db at this moment .. just i need look and field ..

          try and try untill reach success..

          C 1 Reply Last reply
          0
          • R Rajeshwar Code Developer

            the thing is i m not creating my db at this moment .. just i need look and field ..

            try and try untill reach success..

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

            Then create a struct, and a list of that struct, and bind to that

            Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

            R O 2 Replies Last reply
            0
            • C Christian Graus

              Then create a struct, and a list of that struct, and bind to that

              Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

              R Offline
              R Offline
              Rajeshwar Code Developer
              wrote on last edited by
              #7

              ok thanks. dude.

              try and try untill reach success..

              R 1 Reply Last reply
              0
              • R Rajeshwar Code Developer

                ok thanks. dude.

                try and try untill reach success..

                R Offline
                R Offline
                Rajeshwar Code Developer
                wrote on last edited by
                #8

                Actually the thing is . ineed dummy data bcos of i took one gridview and i declare boundfield names and i put autogenerationcolunm =False , so when i m going compile in browser the gridview not showns rest of thiing ll be appears.

                try and try untill reach success..

                B Z 2 Replies Last reply
                0
                • R Rajeshwar Code Developer

                  Actually the thing is . ineed dummy data bcos of i took one gridview and i declare boundfield names and i put autogenerationcolunm =False , so when i m going compile in browser the gridview not showns rest of thiing ll be appears.

                  try and try untill reach success..

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

                  Add BoundFields on GridView.


                  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. www.aktualiteti.com

                  1 Reply Last reply
                  0
                  • R Rajeshwar Code Developer

                    Actually the thing is . ineed dummy data bcos of i took one gridview and i declare boundfield names and i put autogenerationcolunm =False , so when i m going compile in browser the gridview not showns rest of thiing ll be appears.

                    try and try untill reach success..

                    Z Offline
                    Z Offline
                    Zafar A khan
                    wrote on last edited by
                    #10

                    Create DataTable with rows and Column in code behind. then Bind it to GridView.

                    1 Reply Last reply
                    0
                    • C Christian Graus

                      Then create a struct, and a list of that struct, and bind to that

                      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                      O Offline
                      O Offline
                      Oakman
                      wrote on last edited by
                      #11

                      Christian Graus wrote:

                      Then create a struct, and a list of that struct, and bind to that

                      I would've used an xml doc. Not because it's better than your solution, but just because it's the way I think. ' mypath is derived from something like Server.MapPath("App_Data\XMLFile1.xml")

                      Public Function GetXMLTable(ByVal mypath As String) As DataTable

                          Dim myDS As DataSet = New DataSet()
                          Try
                              myDS.ReadXml(mypath)
                      
                          Catch ex As Exception
                              dim exc as Exception = new Exception("Cannot read file " + mypath + " in GetXMLTable. " + ex.Message)  
                              Throw exc
                          End Try
                      
                          Return myDS.Tables(0)
                      

                      End Function

                      Jon "One loves to possess arms, though they hope never to have occasion for them." --Thomas Jefferson to George Washington, 1796. Soap Box 1.0: the first, the original, reborn troll-less

                      modified on Wednesday, August 5, 2009 11:00 AM

                      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