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. One Object Data Provider - Binding two datagrid

One Object Data Provider - Binding two datagrid

Scheduled Pinned Locked Moved WPF
csharpwpfquestionwcfcom
4 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
    Michael Sync
    wrote on last edited by
    #1

    I must use only one object data provider in my wpf window. I have two methods that return two collections in code-behinded file. How can I bind those two methods to datagrid? (I'm using third-party datagrid but I think that the binding will be the same.) If I use the methodname in object data provider, i'm able to bind the datagrid. but I want to use one method for one datagrid.. // xmlns:igDP="http://infragistics.com/DataPresenter" ... ...... if I do like that, it will work.. I want something like that below but it doesn't work. ...... Any idea? Thanks in advance. Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

    J 1 Reply Last reply
    0
    • M Michael Sync

      I must use only one object data provider in my wpf window. I have two methods that return two collections in code-behinded file. How can I bind those two methods to datagrid? (I'm using third-party datagrid but I think that the binding will be the same.) If I use the methodname in object data provider, i'm able to bind the datagrid. but I want to use one method for one datagrid.. // xmlns:igDP="http://infragistics.com/DataPresenter" ... ...... if I do like that, it will work.. I want something like that below but it doesn't work. ...... Any idea? Thanks in advance. Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

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

      Could the two methods not do the binding instead of the XAML? As far as I know (which isn't far I admit !) an ObjecDataProvider can only execute one method.

      Jammer Going where everyone here has gone before! :) My Blog

      M 1 Reply Last reply
      0
      • J Jammer 0

        Could the two methods not do the binding instead of the XAML? As far as I know (which isn't far I admit !) an ObjecDataProvider can only execute one method.

        Jammer Going where everyone here has gone before! :) My Blog

        M Offline
        M Offline
        Michael Sync
        wrote on last edited by
        #3

        Thanks. I will export two public properties and use it in datagrid. Thanks again for your reply, Jammer.

        Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

        J 1 Reply Last reply
        0
        • M Michael Sync

          Thanks. I will export two public properties and use it in datagrid. Thanks again for your reply, Jammer.

          Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

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

          No problem, the xamDataGrid is a great control.

          Jammer Going where everyone here has gone before! :) My Blog

          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