Questions tagged [itemsource]
134 questions
0
votes
0 answers
Set check on chckbox of a Gridcol when setting ItemSource
I have bounded DataGrid, in which I have CheckBoxColumn as its 1st col and Checkbox in header. If that is checked then the data of that row is retrieved. The code is :

Tvd
- 4,463
- 18
- 79
- 125
0
votes
1 answer
WPF ObservableCollection and Listbox.itemsource exception
Editing this entire post to clarify... I cannot seem to nail this:
BackgroundWorker receives data from a WCF service that is a list of objects. The service reference is configured to be ObservableCollection.
I pass the ObservableCollection via a…

RageMachine
- 1
- 1
0
votes
2 answers
How do I insert ToolBar separators when binding ItemSource
I am binding a ToolBar to a collection of command view model objects. The objects in the collection have a property IsSeparator that when true I would like represented with a in the ToolBar.
My basic markup looks like this:

dkackman
- 15,179
- 13
- 69
- 123
0
votes
2 answers
Can't change gridview itemssource
I'm trying to change a box's color in a gridview(that has ItemTemplates which has 100 green boxes).
First, I created a list(which typed as my class) and I added all items to list and I added list to my gridview source :
grid1.ItemsSource =…

Ali Avcı
- 1,281
- 1
- 11
- 24
0
votes
2 answers
How to Update Model from the View
I have Model Class Employee:
public class Employee
{
public string Id { get; set; }
public string Name { get; set; }
public string LastName { get; set; }
}
and View Model class EmployeeViewModel which contains an…

Hussein
- 945
- 1
- 12
- 30
0
votes
1 answer
don't change a property in ChangePropertycallback
I have a ListView and binding ItemSource to a ICollectionView property, and binding selected item to a dp property.
public static readonly DependencyProperty SelectedProperty =
DependencyProperty.Register("Selected",
…

Niloo
- 1,205
- 5
- 29
- 53
0
votes
2 answers
Bind a class collection property via xaml
This is my Globals class
public class Globals
{
private static Globals instance = new Globals();
protected Globals()
{
}
public static Globals Instance
{
get { return instance; }
}
public…

user1649247
- 47
- 2
- 7
0
votes
2 answers
Is Binding ListBox to Collection possible in Silverlight?
In silverlight is databinding to collection<*> allowed ? Because i did the below and nothing happens
…

Deeptechtons
- 10,945
- 27
- 96
- 178
-1
votes
3 answers
Hide column in datagrid WPF
I have a table in a database which I want to display in a WPF DataGrid. However I want to hide the first column. This column defines Id's for all items. I need the Id's for further actions, but I don't want to show it in the DataGrid. I've tried the…

MKlaassen
- 37
- 3
-2
votes
2 answers
Datatemplate binding itemsource inside Datatemplate
I want to bind a ObservableCollection to a Itemscontrol inside a Datatemplate, that is inside another Datatemplate:

user3600403
- 339
- 1
- 2
- 18
-2
votes
1 answer
Error messege "The source contains no DataRows" when i sent a data table object to a pagenation Class method
I have a User Control with a DataGrid.Every thing was fine since the DataGride Pagenation Function within the User Control Class.I Desided to move the pagenation functions into a class instead.This is my Code
{
private static DataTable…

Húsàm Shüjáàdiiñ
- 43
- 7
-2
votes
2 answers
WPF Datagrid Dynamic Itemsource
I have a 2 column WPF Datagrid that is bound to an ObservableCollection of people objects. One of the grid's columns is a dropdownlist displaying (correctly) the gender - Male or Female.
What I want to do is dynamically display choices in another…

fjr_nj
- 17
- 4
-3
votes
1 answer
Items collection must be empty before using ItemsSource.
I Have "Items collection must be empty before using ItemsSource." Error In My Code
I Test All Answer in StackOverFlow Links But They Did not Work!
My Xaml :

Little Sylvanas
- 21
- 4
-4
votes
1 answer
Listview itemsource cannot see values in xaml
I have this problem with my listview itemsource, you see I'm working in WPF, and the problem comes (I think) in VB, its like blocked, this new columns I added I cannot see in xaml, the columns are there but no info, and I can see the values if I put…

David D.
- 1
- 1