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. How can autogenerate controls in Formview ?

How can autogenerate controls in Formview ?

Scheduled Pinned Locked Moved ASP.NET
comhelpquestion
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.
  • H Offline
    H Offline
    Haridas R
    wrote on last edited by
    #1

    Dear Friends, I want to set Dataset in runtime to formview, that time formview should generate controls etc.... Please help me....

    Haridas.R harisofttech@gmail.com harisofttech@hotmail.com (online) harizeenet@yahoo.co.in(online) "Achievement is not a destination, its a journey "

    M 1 Reply Last reply
    0
    • H Haridas R

      Dear Friends, I want to set Dataset in runtime to formview, that time formview should generate controls etc.... Please help me....

      Haridas.R harisofttech@gmail.com harisofttech@hotmail.com (online) harizeenet@yahoo.co.in(online) "Achievement is not a destination, its a journey "

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      You simply assign the dataset to the DataSource property of the FormView control, if the dataset has multiple tables, you can determine which table is bound to the control in the DataMember property, you then call the DataBind method.

      H 1 Reply Last reply
      0
      • M minhpc_bk

        You simply assign the dataset to the DataSource property of the FormView control, if the dataset has multiple tables, you can determine which table is bound to the control in the DataMember property, you then call the DataBind method.

        H Offline
        H Offline
        Haridas R
        wrote on last edited by
        #3

        i did like this way but i'm not getting.

        Haridas.R harisofttech@gmail.com harisofttech@hotmail.com (online) harizeenet@yahoo.co.in(online) "Achievement is not a destination, its a journey "

        M 1 Reply Last reply
        0
        • H Haridas R

          i did like this way but i'm not getting.

          Haridas.R harisofttech@gmail.com harisofttech@hotmail.com (online) harizeenet@yahoo.co.in(online) "Achievement is not a destination, its a journey "

          M Offline
          M Offline
          minhpc_bk
          wrote on last edited by
          #4

          What aren't you getting? The UI of the FormView control? How do you define the FormView control? Are you sure that the dataset has data in there?

          B 1 Reply Last reply
          0
          • M minhpc_bk

            What aren't you getting? The UI of the FormView control? How do you define the FormView control? Are you sure that the dataset has data in there?

            B Offline
            B Offline
            bluewavestrider
            wrote on last edited by
            #5

            I thought MSDN says that a formview control is a by-definition-data-control and not an auto-generate-columns control. If you haven't created Template fields for your controls, you might wanna do that first and leave the DataSource property until runtime where I suppose you can find the control and use it. If you want an auto-generated-columns control maybe you should try out the DetailsView

            Live in fragments no longer. Only connect.

            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