Questions tagged [objectdataprovider]

provides data binding for XAML in Microsoft Windows Presentation Foundation (WPF) 4

Important links

89 questions
1
vote
1 answer

WPF data binding - DataGridComboBoxColumn and ObjectDataProvider

I'm trying to code a WPF 4.0 DataGrid that matches a database table, with two entries in particular GroupID and SectionID... GroupID contains a collection of groups, and SectionID should be built from a table that takes a {GroupID, SectionID} keys…
Mike Hudgell
  • 307
  • 1
  • 3
  • 13
1
vote
1 answer

Using ObjectDataProvider as binding source gives SQL error

I have a weird problem that i can't figure out a solution for: I've made a little WPF app written in C# that uses an attached SQL Server Express .mdf database which i then manipulates through LINQ. I have a ListView on the form which datacontext is…
Kaare Mai
  • 193
  • 2
  • 10
1
vote
1 answer

Populating ComboBox With Object Property Using ObjectDataProvider

I have an ObjectDataProvider defined as follows: As you can see the method getEmployees is…
Jan Tacci
  • 3,131
  • 16
  • 63
  • 83
1
vote
1 answer

Null Pointer Exception on testng datprovider

I am running in a strange problem. Let me explain: I am passing set of input data from xml and then using JAXB to parse xml. This java object is then passed to my test method using testng dataprovider. Here are some related code: Testdata…
Pratik
  • 952
  • 2
  • 16
  • 31
1
vote
2 answers

How NOT to use an ObjectDataProvider?

I have my first WPF working fine with an ObjectDataProvider in the XAML: True
LSTayon
  • 147
  • 2
  • 11
1
vote
1 answer

Wpf objectdataprovider composition

suppose i have this class: public class Foo { public Bar aBar {get; private set;} public Foo(String name) { aBar = new Bar() { Name = name } } } public class Bar { public String Name {get; private…
Matthias
  • 239
  • 2
  • 13
1
vote
2 answers

Referencing nested properties in XAML

This question may be a duplicate of Creating an instance of a nested class in XAML. This question and the related MSDN documentation are concerned with nested types. In this example, the types themselves are not nested, but the syntax seems…
bozalina
  • 89
  • 1
  • 13
0
votes
1 answer

Using multiple ObjectDataProviders with the same control

I've just started to learn binding in WPF and am having some trouble with using multiple ObjectDataProviders with the same control. I have two ObjectDataProviders : Is used to get a list of customer locations from a database and is used to populate…
RegisteredUser
  • 206
  • 1
  • 4
0
votes
1 answer
0
votes
1 answer

Remove a sort from CollectionViewSource C#

I have a Collection View Source (CVS) implemented much like you see in MSDN or many tutorials. In my case, a Car class, and a Cars Collection class which is shown in XAML via an Object Data Provider (ODP) The CVS is linked to this. It all works…
0
votes
1 answer

How to run a predicate on ObjectInstance property of DataTrigger

I have a list saved in the ObjectInstance of the ObjectDataProvider class. When calling my datatrigger i would like to run a predicate on the list and return a value true/false so i can hide/show text. Ideally i would like to call a property…
Syler
  • 1,151
  • 1
  • 13
  • 30
0
votes
1 answer

Table does not refresh

I have a table that consists of rows of reports. A back bean method that is tied to a check box value change event is getting the row IDs and populating an array (rowsToBeRemoved) with this IDs. Another method gets this array and removes the object…
lamostreta
  • 2,359
  • 7
  • 44
  • 61
0
votes
1 answer

how to pass more parameters using TestNG DataProvider (csv)

public void UserConsentCreate(String TestNumber,String email,String lastName,String firstName,String deviceCode, String appVersion,String phone,String countryCode,String loginPassword,String dob,String baseUrl, String contactViaEmail, String…
0
votes
1 answer

DataBinding in a List View

Am new to XAML/WPF and have come across this weird issue: I have a list view to which I set a DataSource. The DataSource is an arraylist of "CatalogPartRows". I create my columns in the code. I then set their cell templates (some of my columns…
Raj
0
votes
0 answers

Why Binding DataTable doesn't work in XAML

My MainWindow Class have a property called "DataTable": 'Table To import the Excel Sheet Public Property DataTable As DataTable An Excel Sheet sets the DataTable property. My question is why I cannot bind that property to a DataGrid. The following…
fpuglap
  • 109
  • 1
  • 2
  • 15