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. hello.....

hello.....

Scheduled Pinned Locked Moved C#
databasequestion
6 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.
  • G Offline
    G Offline
    ginji20
    wrote on last edited by
    #1

    does someone know this code?? Record 9 of 10 this ^ is output on a label.. counting all the record on the database then displaying it like that..

    C 1 Reply Last reply
    0
    • G ginji20

      does someone know this code?? Record 9 of 10 this ^ is output on a label.. counting all the record on the database then displaying it like that..

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      hello.... is not a valid subject, it doesn't help us to work out if we can help, which is the purpose of a subject. How are you displaying these records, in a grid, or otherwise ? If you have a dataset, then you can get a total from the Count of the rows in it.

      Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      G 1 Reply Last reply
      0
      • C Christian Graus

        hello.... is not a valid subject, it doesn't help us to work out if we can help, which is the purpose of a subject. How are you displaying these records, in a grid, or otherwise ? If you have a dataset, then you can get a total from the Count of the rows in it.

        Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        G Offline
        G Offline
        ginji20
        wrote on last edited by
        #3

        sorry about the subject name. the records are displayed on the textboxes.. i also have another table which is in datagridview.

        C L 2 Replies Last reply
        0
        • G ginji20

          sorry about the subject name. the records are displayed on the textboxes.. i also have another table which is in datagridview.

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          If you're showing one at a time, then keep track of which one you;re showing, and get the number of total records from the datasource.

          Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

          1 Reply Last reply
          0
          • G ginji20

            sorry about the subject name. the records are displayed on the textboxes.. i also have another table which is in datagridview.

            L Offline
            L Offline
            leppie
            wrote on last edited by
            #5

            Please!

            xacc.ide - now with TabsToSpaces support
            IronScheme - 1.0 alpha 4a out now (29 May 2008)

            G 1 Reply Last reply
            0
            • L leppie

              Please!

              xacc.ide - now with TabsToSpaces support
              IronScheme - 1.0 alpha 4a out now (29 May 2008)

              G Offline
              G Offline
              ginji20
              wrote on last edited by
              #6

              thanks leppie my problem is like this i can get the total number of record from the database, but i want to keep track of the number of records the textbox / datagridview is displaying. so in the label RECORD 9 of 10 which 10 is the total record then 9 is the record on the textbox / datagridview if i move it forward the label must display RECORD 10 of 10. sorry my english is bad so i cant explain it well.. im just new in c# and i have this project working on without me training in c#. thanks..

              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