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. retrive single fieald form database

retrive single fieald form database

Scheduled Pinned Locked Moved C#
database
4 Posts 4 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.
  • W Offline
    W Offline
    webhay
    wrote on last edited by
    #1

    Hi all, i have table inside dataset there is a one row and one columne i need to retrive this value into string thanks haytham

    L T 2 Replies Last reply
    0
    • W webhay

      Hi all, i have table inside dataset there is a one row and one columne i need to retrive this value into string thanks haytham

      L Offline
      L Offline
      Looney Tunezez
      wrote on last edited by
      #2

      webhay wrote: i have table inside dataset there is a one row and one columne i need to retrive this value into string Say, the dataset is called dset, for some reason! then dset.Tables[0].Rows[0].ItemArray[0].ToString() should retrieve the first column in the first row in the first table, which you seem to be absolutely certain of.:wtf::confused: Cheers! Looney Tunezez "If you build it.... .....BUGS will come!" -JB
      Application.Run(new Form1(this.Dispose())); <--WHAT :wtf::confused::eek:
      "Stability. What an interesting concept" - Chris Maunder

      C 1 Reply Last reply
      0
      • L Looney Tunezez

        webhay wrote: i have table inside dataset there is a one row and one columne i need to retrive this value into string Say, the dataset is called dset, for some reason! then dset.Tables[0].Rows[0].ItemArray[0].ToString() should retrieve the first column in the first row in the first table, which you seem to be absolutely certain of.:wtf::confused: Cheers! Looney Tunezez "If you build it.... .....BUGS will come!" -JB
        Application.Run(new Form1(this.Dispose())); <--WHAT :wtf::confused::eek:
        "Stability. What an interesting concept" - Chris Maunder

        C Offline
        C Offline
        cnet2008
        wrote on last edited by
        #3

        you can use SqlDataAdapter you are welcome to visit my blog

        1 Reply Last reply
        0
        • W webhay

          Hi all, i have table inside dataset there is a one row and one columne i need to retrive this value into string thanks haytham

          T Offline
          T Offline
          turbochimp
          wrote on last edited by
          #4

          Assuming you want row x, column y, and assuming the DataSet object is named "ds" and DataTable's TableName is "MyTable", how about: object value = ds.Tables["MyTable"].Rows[x][y];

          The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’

          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