Questions tagged [itemsource]
134 questions
0
votes
1 answer
How to update datagridcomboboxColumn itemsource?
I have implemented a datagrid with some datagrid columns.
One of these columns are a DatagridComboboxColumn. That has itemsource binding to an ObservableCollection list from my Viewmodel.
How do i update the itemsource, so i can see the new list on…

BenjaminMadsen
- 7
- 3
0
votes
1 answer
make.keys function error Error in `[<-`(`*tmp*`, abs(list.i), i, value = sign(list.i)) : subscript out of bounds
I am trying to score my scale,
key.list <- list(FinansalBilgi=c(25:34),
Finansalihtiyat=c(37:40,42,43,44,45),
borclanmaTutumu=c(35,36,41,46))
keys <- make.keys(23,key.list,item.labels = colnames(data)[24:46])
key.list is…

ilhan ilker Albulut
- 13
- 2
0
votes
1 answer
Xamarin.forms: Make Bindeable itemsource not start at 0 (without cutting the first objects)
I am giving a list with objects to my swipeview:
swipeview_swipeview.ItemsSource = data;
However, the itemview always then starts at object 0. (At the beginning).
But maybe I just want to feed it my whole data set, but make it start at object 3.
I…

user13397492
- 159
- 11
0
votes
1 answer
How to display a DataGrid property with combo box/drop down list that varies according to input of another text box property
I have a DataGrid which is bind to a list like below that has various properties. I have 2 requirements that i am struggling with.

jamilia
- 359
- 4
- 14
0
votes
1 answer
Xamarin: From list of urls to populating a CollectionView with Images
I cannot figure out how this is done. I have a page with a Collection view and Image inside of each cell.
I do also have a list of URLs, each one pointing to a jpg. What I would like to do is display each jpg in one of those cells.

sharkyenergy
- 3,842
- 10
- 46
- 97
0
votes
1 answer
StatusBar - Dynamic items and static items
I have a statusbar, which will contain some dynamic statusbaritems and some "hard-coded" statusbaritems. For some reason the dynamic status bar items are not displayed, even thought the binding with the ViewModel property is done and I can see the…

CiucaS
- 2,010
- 5
- 36
- 63
0
votes
2 answers
WPF Combobox - changed Datasource results in empty ItemsSource
I'm doing a simple binding of a Combobox in Page:
XAML:
CODE behind:
private void Page_Loaded(object sender, RoutedEventArgs e)
{
…

Lucy82
- 654
- 2
- 12
- 32
0
votes
1 answer
Itemsource Binding Unique for each row in DataGridComboBox C#
I have this problem, and I appreciate if you help me with it.
I have a ViewModel with public ObservableCollection Profiles { get; set; } Property which fills a DataGrid.
Inside the DataGrid, there is a ComboBox Column:
…

Navid Quicksilver
- 15
- 7
0
votes
1 answer
View order of derived class variables in Silverlight DataGrid
I have the following situation in a Visual Studio 2010 (C#) Silverlight 4 project using the DataGrid (this is pseudocode for brevity sake):
public class BaseClass {
public string str1;
public string str2;
}
public class DerivedClass :…

JayH
- 1
- 1
0
votes
2 answers
User editable datagrid with empty row, even if observableCollection is empty
I'm using a datagrid, bound to an observablecollection with TwoWay binding.
My goal is, that a user generates a list of data, starting from an empty collection.
So I enabled the option CanUserAddRow.
In the code, I generate the obsevrable collection…

hafisch
- 13
- 4
0
votes
1 answer
0
votes
0 answers
Is there a way to assign InputGestureText for the first 10 items of a MenuItem ItemSource?
I'm trying to either create a template that will assign static values for the InputGestureText of up to the first 10 items of a MenuItem's ItemSource or do it from the code-behind after an event fires but I'm having no luck trying to get the actual…

nwahs
- 21
- 3
0
votes
2 answers
In WPF, I want to dynamically set the itemsource based on combo box selection
I have a Slider and a Combobox in my view. I have 2 properties in my ViewModel. Based on the selection of the combobox, I want to bind any one of the property to the value of the slider.
private int _xValue;
public int XValue
{
get…

Pravin
- 55
- 1
- 9
0
votes
1 answer
Dynamically add items to grid WPF
I have the following 'Grid`:
I also have the following collection of UserControl items:
private ObservableCollection…

Idanis
- 1,918
- 6
- 38
- 69
0
votes
1 answer
Setting up a TreeView in Silverlight with a HierarchicalDataTemplate and Binding with ItemSource
I am trying to build a TreeView and have it set up like this link:
Silverlight vs WPF - Treeview with HierarchialDataTemplate
As a comment to the first actual answer provided the poster says how they solved it but they didn't provide code and I…

gloomy.penguin
- 5,833
- 6
- 33
- 59