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. DataBinding removal error

DataBinding removal error

Scheduled Pinned Locked Moved C#
visual-studiohelpquestion
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.
  • K Offline
    K Offline
    kanchoette
    wrote on last edited by
    #1

    I have a textBox databound to a datatable via the properties window. It works well. I now need to remove this databinding. When doing this, via the properties window, and setting the Text section of DataBindings back to 'None' I get this error when re-running the solution: 'object reference not set to an instance of an object' for line: firstPaymentDateTextBox.DataBindings["Text"].Format += new ConvertEventHandler(DebtConvert.DateToString); it seems that VS 2008 does not remove this line when resetting the databinding via the designer properties window. It there a way around this please? As I have a lot of databindings to remove it seems a little tedious for such a, otherwise, powerful IDE.

    K 1 Reply Last reply
    0
    • K kanchoette

      I have a textBox databound to a datatable via the properties window. It works well. I now need to remove this databinding. When doing this, via the properties window, and setting the Text section of DataBindings back to 'None' I get this error when re-running the solution: 'object reference not set to an instance of an object' for line: firstPaymentDateTextBox.DataBindings["Text"].Format += new ConvertEventHandler(DebtConvert.DateToString); it seems that VS 2008 does not remove this line when resetting the databinding via the designer properties window. It there a way around this please? As I have a lot of databindings to remove it seems a little tedious for such a, otherwise, powerful IDE.

      K Offline
      K Offline
      Keith Barrow
      wrote on last edited by
      #2

      Why do you need to remove the bindings?

      K 1 Reply Last reply
      0
      • K Keith Barrow

        Why do you need to remove the bindings?

        K Offline
        K Offline
        kanchoette
        wrote on last edited by
        #3

        The project has changed and the data binding for the textbox is no longer required.

        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