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. How to update the datagrid in wpf based on text changed property of text box control in MVVM mdel?

How to update the datagrid in wpf based on text changed property of text box control in MVVM mdel?

Scheduled Pinned Locked Moved WPF
wpfquestioncsharpcssarchitecture
3 Posts 3 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.
  • S Offline
    S Offline
    SRKSHOME
    wrote on last edited by
    #1

    Hi, I have a DataGrid that is bound to ObservableCollection.I have textbox control in the same window..Based on text change event of text box(let us say filtering..based on typed character datagrid should change) how do i update the grid in MVVM model?

    J P 2 Replies Last reply
    0
    • S SRKSHOME

      Hi, I have a DataGrid that is bound to ObservableCollection.I have textbox control in the same window..Based on text change event of text box(let us say filtering..based on typed character datagrid should change) how do i update the grid in MVVM model?

      J Offline
      J Offline
      Jammer 0
      wrote on last edited by
      #2

      The glib response is change the observable collection the grid is bound to. Need a bit more info really.

      Jammer My Blog | Articles | DMon | SampleSort

      1 Reply Last reply
      0
      • S SRKSHOME

        Hi, I have a DataGrid that is bound to ObservableCollection.I have textbox control in the same window..Based on text change event of text box(let us say filtering..based on typed character datagrid should change) how do i update the grid in MVVM model?

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #3

        Have a look at this[^] post for some ideas.

        I'm not a stalker, I just know things. Oh by the way, you're out of milk.

        Forgive your enemies - it messes with their heads

        My blog | My articles | MoXAML PowerToys | Onyx

        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