Check box on a DataGridView

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?VG9ueSBBLg==?=

    #1

    Check box on a DataGridView

    I have a datagridview on a Windows form where one of the columns is a
    checkbox. After checking or unchecking the checkbox I try to update the
    database. The following error appears

    System.InvalidO perationExcepti on was unhandled

    Edits to Textbox columns update without a problem. Any suggestion on what
    I'm doing wrong. Thanks...

    --
    Tony
  • =?Utf-8?B?TWFuaXNoIEJhZm5h?=

    #2
    RE: Check box on a DataGridView

    Hi,
    Could you post your full code here,so that we can reproduce that error and
    provide solutions to it.
    --
    Hope this helps.
    Thanks and Regards.
    Manish Bafna.
    MCP and MCTS.



    "Tony A." wrote:
    I have a datagridview on a Windows form where one of the columns is a
    checkbox. After checking or unchecking the checkbox I try to update the
    database. The following error appears
    >
    System.InvalidO perationExcepti on was unhandled
    >
    Edits to Textbox columns update without a problem. Any suggestion on what
    I'm doing wrong. Thanks...
    >
    --
    Tony

    Comment

    • =?Utf-8?B?VG9ueSBBLg==?=

      #3
      RE: Check box on a DataGridView

      I resolved the problem by creating an EventHandler for the datagridview.
      Everytime the check box changes the selected row is updated to the database.
      --
      Tony


      "Manish Bafna" wrote:
      Hi,
      Could you post your full code here,so that we can reproduce that error and
      provide solutions to it.
      --
      Hope this helps.
      Thanks and Regards.
      Manish Bafna.
      MCP and MCTS.
      >
      >
      >
      "Tony A." wrote:
      >
      I have a datagridview on a Windows form where one of the columns is a
      checkbox. After checking or unchecking the checkbox I try to update the
      database. The following error appears

      System.InvalidO perationExcepti on was unhandled

      Edits to Textbox columns update without a problem. Any suggestion on what
      I'm doing wrong. Thanks...

      --
      Tony

      Comment

      Working...