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