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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…