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

RowState

Scheduled Pinned Locked Moved C#
helpdatabasequestion
2 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.
  • M Offline
    M Offline
    matmir
    wrote on last edited by
    #1

    Hello, I have a problem with DataTable. I read records by Stored Procedure and I put records in MyDataTable. My DataGridView.DataSource = MyDataTable; When I click "Next Record" button, the property of MyDataTable.Rows[this.BindingContext[dtNominativi].Position].RowState become Modified, but I haven't modified filed. WHY???? HELP ME PLEASE!!!!!

    S 1 Reply Last reply
    0
    • M matmir

      Hello, I have a problem with DataTable. I read records by Stored Procedure and I put records in MyDataTable. My DataGridView.DataSource = MyDataTable; When I click "Next Record" button, the property of MyDataTable.Rows[this.BindingContext[dtNominativi].Position].RowState become Modified, but I haven't modified filed. WHY???? HELP ME PLEASE!!!!!

      S Offline
      S Offline
      synunn
      wrote on last edited by
      #2

      BindingContext is reactive to you location in the table, so by clicking next you are modifing it. Why where you hoping for it not to be changed?

      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