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. Reference 1st cell of first row of dataset ?

Reference 1st cell of first row of dataset ?

Scheduled Pinned Locked Moved C#
csharpquestion
9 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.
  • D Offline
    D Offline
    digsy_
    wrote on last edited by
    #1

    I have a dataset called ReturnedDataset. It contains 1 row with 1 cell - how do I reference it ? In vb.net I would do something like - DataSet21.issues(0).title but I cant seem to find the correct syntax for c#. Thanks

    N 1 Reply Last reply
    0
    • D digsy_

      I have a dataset called ReturnedDataset. It contains 1 row with 1 cell - how do I reference it ? In vb.net I would do something like - DataSet21.issues(0).title but I cant seem to find the correct syntax for c#. Thanks

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      DataSet.Table[0].Rows[0][0] Table 0, Row 0, Cell 0


      only two letters away from being an asset

      C 1 Reply Last reply
      0
      • N Not Active

        DataSet.Table[0].Rows[0][0] Table 0, Row 0, Cell 0


        only two letters away from being an asset

        C Offline
        C Offline
        Chintan Desai
        wrote on last edited by
        #3

        DataSet.Table["TableName"].Rows[0][0]:)

        Regards Chintan www.visharadsoft.com (Nothing is so purify as KNOWLEDGE)

        N 1 Reply Last reply
        0
        • C Chintan Desai

          DataSet.Table["TableName"].Rows[0][0]:)

          Regards Chintan www.visharadsoft.com (Nothing is so purify as KNOWLEDGE)

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          Yes, and if you want to go even further it could be DataSet.Table["TableName"].Rows[0]["ColumnName"] or if strongly typed DataSet.TableName.Rows[0].ColumnName So your point was?


          only two letters away from being an asset

          C 1 Reply Last reply
          0
          • N Not Active

            Yes, and if you want to go even further it could be DataSet.Table["TableName"].Rows[0]["ColumnName"] or if strongly typed DataSet.TableName.Rows[0].ColumnName So your point was?


            only two letters away from being an asset

            C Offline
            C Offline
            Colin Angus Mackay
            wrote on last edited by
            #5

            Mark Nischalke wrote:

            So your point was?

            Probably this: "I can code better than you can. Nya nya, nyi nya nyaaaa!" :rolleyes:


            Upcoming events: * Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ... * Reading: Developer Day 5 Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website

            N 1 Reply Last reply
            0
            • C Colin Angus Mackay

              Mark Nischalke wrote:

              So your point was?

              Probably this: "I can code better than you can. Nya nya, nyi nya nyaaaa!" :rolleyes:


              Upcoming events: * Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ... * Reading: Developer Day 5 Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website

              N Offline
              N Offline
              Not Active
              wrote on last edited by
              #6

              :sigh: If it were you I'd admit it. :((


              only two letters away from being an asset

              C 1 Reply Last reply
              0
              • N Not Active

                :sigh: If it were you I'd admit it. :((


                only two letters away from being an asset

                C Offline
                C Offline
                Colin Angus Mackay
                wrote on last edited by
                #7

                C'mon! You're a Code Project MVP! You don't get that for nothing. It means you are great at what you do and you are great at spreading the greatness. (You don't think I over did the "great" thing there, did you?)


                Upcoming events: * Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ... * Reading: Developer Day 5 Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website

                N 1 Reply Last reply
                0
                • C Colin Angus Mackay

                  C'mon! You're a Code Project MVP! You don't get that for nothing. It means you are great at what you do and you are great at spreading the greatness. (You don't think I over did the "great" thing there, did you?)


                  Upcoming events: * Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ... * Reading: Developer Day 5 Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website

                  N Offline
                  N Offline
                  Not Active
                  wrote on last edited by
                  #8

                  You're right, I am great at spreading something, but it usually comes from the posterior of a bull. ;P


                  only two letters away from being an asset

                  C 1 Reply Last reply
                  0
                  • N Not Active

                    You're right, I am great at spreading something, but it usually comes from the posterior of a bull. ;P


                    only two letters away from being an asset

                    C Offline
                    C Offline
                    Colin Angus Mackay
                    wrote on last edited by
                    #9

                    You work on a farm! Gosh! You find Software Developers in every corner of society. :-D


                    Upcoming events: * Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ... * Reading: Developer Day 5 Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website

                    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