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. Database & SysAdmin
  3. Database
  4. BindingSource setting RowState.Modified on unchanged rows! [modified]

BindingSource setting RowState.Modified on unchanged rows! [modified]

Scheduled Pinned Locked Moved Database
questionhelpcsharp
1 Posts 1 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.
  • N Offline
    N Offline
    nzmike
    wrote on last edited by
    #1

    I have a VB.Net 2.0 app with a readonly DataGridView and a BindingSource and BindingNavigator which allows the user to edit, add and delete rows via my own custom controls (combobox, textbox etc). The table to edit is read in successfully then bound to (and displayed in) the DGV and I can do all the BindingNavigator stuff like editing fields from selected rows and adding/deleting rows as you'd expect. The problem I'm getting is that if I click on a row in the DGV but do not make any changes it is still marked as being changed (ie: RowState = Modified). I would have expected that only the rows that actually changed would have this status - otherwise what's the point? So I guess my question is why is the BindingSource (or BindingNavigator or DGV?) setting these unchanged rows to Modified and how can I stop it from doing that or tell which rows have genuinely changed data? Hope someone can help as this one has me stumped! Mike -- modified at 23:15 Monday 15th January, 2007

    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