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. [Message Deleted]

[Message Deleted]

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

    [Message Deleted]

    M 1 Reply Last reply
    0
    • A Anup2006

      [Message Deleted]

      M Offline
      M Offline
      Maqsood Ahmed
      wrote on last edited by
      #2

      Hello, You can get the CurrencyManager and access its Count property. CurrencyManager cm = dataGrid.BindingContext[dataGrid.DataSource] as CurrencyManager; if(cm != null) int count = cm.List.Count; //Total rows in the grid. HTH. Cheers :) Maqsood Ahmed - MCAD.net Kolachi Advanced Technologies http://www.kolachi.net

      A 1 Reply Last reply
      0
      • M Maqsood Ahmed

        Hello, You can get the CurrencyManager and access its Count property. CurrencyManager cm = dataGrid.BindingContext[dataGrid.DataSource] as CurrencyManager; if(cm != null) int count = cm.List.Count; //Total rows in the grid. HTH. Cheers :) Maqsood Ahmed - MCAD.net Kolachi Advanced Technologies http://www.kolachi.net

        A Offline
        A Offline
        Anup2006
        wrote on last edited by
        #3

        :(It is not working for me.If i'm having 2 rows the count is showing as 1 ??? Anup

        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