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. WPF
  4. Problem with WPF and removing a row from a datagrid

Problem with WPF and removing a row from a datagrid

Scheduled Pinned Locked Moved WPF
helpquestioncsharpwpfdesign
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.
  • U Offline
    U Offline
    User 2970611
    wrote on last edited by
    #1

    I am very new to WPF and I have taken over a WPF project from someone else. Problem I have is removing a rows from two datagrids. To expand on this, the UI works as follows; there are 3 datagrid; the first column (a Combobox) on each of the three datagrids are bound to the same data source. However, the columns on the other two datagrids (also comboboxes) their values depends upon whatever the user selects as their selected item in the first combobox, and this works in the viewmodel layer. All of this works fine, but problem comes with removing rows. The issue I have is this, if I remove a row in the first datagrid, and lets say this row has the value of "X", this gets deleted. If this value appears in a row in other two datagrids, the column in the other two datagrids gets removed but not the row themselves. So, my question is, how do remove a row or rows from a datagrid based upon a value from another datagrid? Thanks

    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