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. asp.net 2010 single row control

asp.net 2010 single row control

Scheduled Pinned Locked Moved ASP.NET
csharpcssasp-netbusinesstutorial
2 Posts 2 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
    classy_dog
    wrote on last edited by
    #1

    Since I am new to working with C#.asp.net 2010 webforms, I would like suggestions on using a formview control versus a listview control or possibly an asp.net table control. For the the page I am working with, only one row will be disaplyed at a time while the user either inserts or updates data for that row. I am suppose to have three columns which are: the column name, column value and column description. I also want to display the various columns by categories. I know I could accomplish my goal with an asp.net table control, but I do not believe this is the best solution. I only want to use this soltuion if nothing else works. So far I have used a formview control since it is setup for only one row at a time and it is more customizable than a detailview control is. What I would to do is setup my three columns that are 'grid' style. I know the detailview is grid style, but you can not do any extra formatting. Thus can you tell me with the formview control, can I add an extra column (for the static description of the columns) and make the column name and column values look more like a grid. If so, how would you accomplish this goal? I would also like to add a few separator rows that would indicate what category the group of columns are setup for. Can a formview control meet this requirement? If so, can you point me a reference that i can use to see how to accomplish this task? If the formview control does not work, can you point me to references where a listview control would meet my requirements?

    R 1 Reply Last reply
    0
    • C classy_dog

      Since I am new to working with C#.asp.net 2010 webforms, I would like suggestions on using a formview control versus a listview control or possibly an asp.net table control. For the the page I am working with, only one row will be disaplyed at a time while the user either inserts or updates data for that row. I am suppose to have three columns which are: the column name, column value and column description. I also want to display the various columns by categories. I know I could accomplish my goal with an asp.net table control, but I do not believe this is the best solution. I only want to use this soltuion if nothing else works. So far I have used a formview control since it is setup for only one row at a time and it is more customizable than a detailview control is. What I would to do is setup my three columns that are 'grid' style. I know the detailview is grid style, but you can not do any extra formatting. Thus can you tell me with the formview control, can I add an extra column (for the static description of the columns) and make the column name and column values look more like a grid. If so, how would you accomplish this goal? I would also like to add a few separator rows that would indicate what category the group of columns are setup for. Can a formview control meet this requirement? If so, can you point me a reference that i can use to see how to accomplish this task? If the formview control does not work, can you point me to references where a listview control would meet my requirements?

      R Offline
      R Offline
      Rocky
      wrote on last edited by
      #2

      I'm not sure I fully understand the requirement but I think looking at using DetailsView with a TemplateField Should solve your problem coz you can do a lot of formatting in it. This might elaborate on that a bit. http://msdn.microsoft.com/en-us/library/bb288035.aspx[^] Good luck

      Rocky My Blog

      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