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. Renaming a Column of a Table in a Dataset+Sourabh.

Renaming a Column of a Table in a Dataset+Sourabh.

Scheduled Pinned Locked Moved ASP.NET
helpquestion
4 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.
  • D Offline
    D Offline
    Dot Net Jantu
    wrote on last edited by
    #1

    Hi All, I have a Dataset, in which there is a table and in that table i want to rename a column.. how? dsSave.Tables["FA_ASSET_DEP"].Columns["BASE_AMT"]; dsSave is Dataset. FA_ASSET_DEP is table BASE_AMT is the column to be converted to DEP_AMT ?????? HELP

    Thanks and Regards,

    I 1 Reply Last reply
    0
    • D Dot Net Jantu

      Hi All, I have a Dataset, in which there is a table and in that table i want to rename a column.. how? dsSave.Tables["FA_ASSET_DEP"].Columns["BASE_AMT"]; dsSave is Dataset. FA_ASSET_DEP is table BASE_AMT is the column to be converted to DEP_AMT ?????? HELP

      Thanks and Regards,

      I Offline
      I Offline
      Imran Khan Pathan
      wrote on last edited by
      #2

      You can convert column name in your query string. for example

      "select BASE_AMT as DEP_AMT from FA_ASSET_DEP"

      bEst rEgard pAthAn

      please don't forget to vote on the post that helped you.

      D 1 Reply Last reply
      0
      • I Imran Khan Pathan

        You can convert column name in your query string. for example

        "select BASE_AMT as DEP_AMT from FA_ASSET_DEP"

        bEst rEgard pAthAn

        please don't forget to vote on the post that helped you.

        D Offline
        D Offline
        Dot Net Jantu
        wrote on last edited by
        #3

        Hi, This is also a good way if you dont want to change your column name while retrieving. dsSave.Tables["FA_ASSET_DEP"].Columns["BASE_AMT"].ColumnName = "DEP_AMT" I have got this with intense research and development...:laugh:

        Thanks and Regards,

        I 1 Reply Last reply
        0
        • D Dot Net Jantu

          Hi, This is also a good way if you dont want to change your column name while retrieving. dsSave.Tables["FA_ASSET_DEP"].Columns["BASE_AMT"].ColumnName = "DEP_AMT" I have got this with intense research and development...:laugh:

          Thanks and Regards,

          I Offline
          I Offline
          Imran Khan Pathan
          wrote on last edited by
          #4

          good job

          please don't forget to vote on the post that helped you.

          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