tagged [data-binding]
Re-sort WPF DataGrid after bounded Data has changed
Re-sort WPF DataGrid after bounded Data has changed I am looking for a way to my `DataGrid` when the underlying data has . (The setting is quite standard: The DataGrid's `ItemSource` property is bound...
- Modified
- 27 May at 02:57
WPF checkbox binding
WPF checkbox binding While it is trivial to store a checkbox's checked state in a variable using the checkbox's Click event, how would I do it via databinding? All the examples I have found have the U...
- Modified
- 3 Feb at 09:0
Generic table editor
Generic table editor I have about 40 tables and users should edit data in this tables in browser. I believe than it's possible to create one page with dropdown, user select table name in this dropdown...
- Modified
- 18 Oct at 20:4
WPF - databinding to a property of same control
WPF - databinding to a property of same control I have a control (let's say a textbox) and I want bind the value of one property (let's say tooltip) to value of another property in same control(let's ...
- Modified
- 10 Sep at 09:20
Bind dictionary to repeater
Bind dictionary to repeater I have a dictionary object `` and would like to bind it to a repeater. However, I'm not sure what to put in the `aspx` markup to actually display the key-value pair. There ...
- Modified
- 9 Jul at 18:40
Is there "DisplayMember" and "ValueMember" like Properties for CheckedListBox control? C# winforms
Is there "DisplayMember" and "ValueMember" like Properties for CheckedListBox control? C# winforms I have this `DataTable` with the following structure: And I display the values from the `DataTable` i...
- Modified
- 7 Oct at 11:45
Winforms DataGridView databind to complex type / nested property
Winforms DataGridView databind to complex type / nested property I am trying to databind a `DataGridView` to a list that contains a class with the following structure: When I step through the code, th...
- Modified
- 7 Dec at 09:16
Using a Dictionary in a propertygrid
Using a Dictionary in a propertygrid I'd like to edit a list of key value(string, string) items using a propertygrid. When I use a `Dictionary` as type the propertygrid will show a GUI, but it does no...
- Modified
- 18 Dec at 14:37
Binding DynamicObject to a DataGrid with automatic column generation?
Binding DynamicObject to a DataGrid with automatic column generation? I'm still experimenting with DynamicObjects. Now I need some information: I'm trying to bind an object inheriting from DynamicObje...
- Modified
- 18 Mar at 22:19
Access DisplayName in xaml
Access DisplayName in xaml How can i access DisplayName's value in XAML? I've got: XAML: Is there any way to bind DisplayName in such or simmilar way? Th
- Modified
- 24 Jun at 13:11
How can I do Databinding in c#?
How can I do Databinding in c#? I have the following class and I want to bind this programmatically to a text box. How do I do that? Shooting in the dark: I get the following error > "Cannot bind to t...
- Modified
- 12 Oct at 04:16
Richtextbox wpf binding
Richtextbox wpf binding To do DataBinding of the `Document` in a WPF `RichtextBox`, I saw 2 solutions so far, which are to derive from the `RichtextBox` and add a `DependencyProperty`, and also the so...
- Modified
- 14 May at 22:42
How to bind multiple values to a single WPF TextBlock?
How to bind multiple values to a single WPF TextBlock? I'm currently using the `TextBlock` below to bind the value of a property named `Name`: Now, I want to bind property named `ID` to the same `Text...
- Modified
- 25 May at 11:37
Binding to element in WPF: can the Path expression do math?
Binding to element in WPF: can the Path expression do math? I'm trying to bind a control to the parent's Height/width property using `ElementName` and a Path. However, I don't want to bind to the actu...
- Modified
- 3 May at 09:34
Specify the max number of columns for a WrapPanel in WPF
Specify the max number of columns for a WrapPanel in WPF I have a WrapPanel, And I want to specify the Max number of its columns. So, for example, when my Collection "ObjectCollection" (binded to this...
- Modified
- 16 Apr at 04:50
Databinding in C# and .NET
Databinding in C# and .NET I am pretty new to C# and .NET and I'm strugling a little with the whole concept of databinding. What I am asking for is a quick rundown of the concept, or even better, poin...
- Modified
- 16 Jan at 14:49
How to bind a List to a ComboBox?
How to bind a List to a ComboBox? I want to connect a `BindingSource` to a list of class objects and then objects value to a ComboBox. Can anyone suggest how to do it? is my class and I want to bind i...
- Modified
- 14 Dec at 00:59
How to bind RadioButtons to an enum?
How to bind RadioButtons to an enum? I've got an enum like this: I got a property in my DataContext: And I got three RadioButtons in my WPF client. ``` First Selection The O
- Modified
- 21 Oct at 14:37
Binding a generic List<string> to a ComboBox
Binding a generic List to a ComboBox I have a ComboBox and I want to bind a generic List to it. Can anyone see why the code below won't work? The binding source has data in it, but it won't fill the C...
- Modified
- 5 Oct at 06:6
Datatrigger on empty string
Datatrigger on empty string How can a DataTrigger change the visibility of stackpanel, based on a binded string? I have the following Xaml ```
- Modified
- 7 Oct at 22:48
Is there a way to specify a custom dependency property's default binding mode and update trigger?
Is there a way to specify a custom dependency property's default binding mode and update trigger? I would like to make it so that, as default, when I bind to one of my dependency properties the bindin...
- Modified
- 18 Apr at 21:40
Angular 2 two way binding using ngModel is not working
Angular 2 two way binding using ngModel is not working Can't bind to 'ngModel' since it isn't a know property of the 'input' element and there are no matching directives with a corresponding property ...
- Modified
- 22 Feb at 06:14
Is it possible to bind complex type properties to a datagrid?
Is it possible to bind complex type properties to a datagrid? How would I go about binding the following object, Car, to a gridview? The primitive types get bound easy but I have found no way of displ...
- Modified
- 23 Sep at 14:24
OnExpanded event for any item in a treeview
OnExpanded event for any item in a treeview I'd like to get an event for any expansion of a treeviewitem in my treeview. The reason for this, a bit unrelated to the original question: I am creating a ...
- Modified
- 8 Sep at 00:12
List<T> vs BindingList<T> Advantages/DisAdvantages
List vs BindingList Advantages/DisAdvantages Can someone describe what the difference between the two are for my project. Currently I have a `List` and set the BindingSource to that and a DataGridView...
- Modified
- 11 Feb at 11:31