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. General Programming
  3. C#
  4. Select statement To display each row as colum for Gridview control

Select statement To display each row as colum for Gridview control

Scheduled Pinned Locked Moved C#
question
3 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.
  • U Offline
    U Offline
    User 4005525
    wrote on last edited by
    #1

    Hi, I Have two tables. Table1 has the following columns: TableID FieldID FieldName FieldValue DateAdded and Table2 has the following Columns FieldID TableID Dataadded And I want to display Each FieldName as a Column name for Dridview control and FieldValue as Value for each column. How can i form SELECT Statement To Achieve this ? Thanks in advance sri

    A A 2 Replies Last reply
    0
    • U User 4005525

      Hi, I Have two tables. Table1 has the following columns: TableID FieldID FieldName FieldValue DateAdded and Table2 has the following Columns FieldID TableID Dataadded And I want to display Each FieldName as a Column name for Dridview control and FieldValue as Value for each column. How can i form SELECT Statement To Achieve this ? Thanks in advance sri

      A Offline
      A Offline
      Ashfield
      wrote on last edited by
      #2

      Your select will give you the column names and data in the format you are looking for, you just need to bind the result to your gridview

      Bob Ashfield Consultants Ltd

      1 Reply Last reply
      0
      • U User 4005525

        Hi, I Have two tables. Table1 has the following columns: TableID FieldID FieldName FieldValue DateAdded and Table2 has the following Columns FieldID TableID Dataadded And I want to display Each FieldName as a Column name for Dridview control and FieldValue as Value for each column. How can i form SELECT Statement To Achieve this ? Thanks in advance sri

        A Offline
        A Offline
        Atif Ali Bhatti
        wrote on last edited by
        #3

        Assalam-0-alaikum, quite strange question. n e way, would u mind elaborating a bit more as the question is not clear. Regards Atif Ali Bhatti.

        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