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. databind to datatable.rows.count

databind to datatable.rows.count

Scheduled Pinned Locked Moved C#
question
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.
  • T Offline
    T Offline
    troels_sorensen
    wrote on last edited by
    #1

    Hi. I have a label which I would like to Databind to the count property of a rows collection in a datatable: label1.DataBindings.Add("Text", MyDataTable.Rows, "Count"); The label gets the first time i put data into the table. But when i clear() the table and put new data into it, the label does not get the changes. Why is that?

    I 1 Reply Last reply
    0
    • T troels_sorensen

      Hi. I have a label which I would like to Databind to the count property of a rows collection in a datatable: label1.DataBindings.Add("Text", MyDataTable.Rows, "Count"); The label gets the first time i put data into the table. But when i clear() the table and put new data into it, the label does not get the changes. Why is that?

      I Offline
      I Offline
      Ista
      wrote on last edited by
      #2

      try setdatabinding maybe I'm not an expert yet, but I play one at work. Yeah and here too.

      T 1 Reply Last reply
      0
      • I Ista

        try setdatabinding maybe I'm not an expert yet, but I play one at work. Yeah and here too.

        T Offline
        T Offline
        troels_sorensen
        wrote on last edited by
        #3

        no that's not it. think it has something to do with datatable.rows.count not sending notifications.... but i cant see how i can find out if it is supposed to send notifications....

        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