All Questions
Tagged with winforms data-binding
1,457 questions
0
votes
0
answers
49
views
How to bind .NET 9 Winforms controls to object
I am trying to bind 2 textboxes to a class with Email and Password properties. I using INotifyPropertyChanged on the class. I set the values of the class in my form load event to test that the ...
-1
votes
1
answer
93
views
Does BindingList<T> benefit from BindingSource or INotifyPropertyChanged?
I have a WinForms form that defines a BindingList<Item>. And this list is assigned to the DataSource property of a ListBox.
This works pretty well. Any changes made to the list are also ...
4
votes
0
answers
81
views
Showing empty collection ListBox
If I want to display contents of the Dictionary in the ListBox, I have used a BindingSource. It works well, and it works well for my custom collection, too. However, if the collection (e.g. Dictionary)...
0
votes
0
answers
50
views
Slow performance on write with data-bound DataGridView
I have a Windows Forms app written in C# which uses 4 data-bound DataGridView (DGV) controls. They consist of text cells and of dropdown value cells. The entire layout (including the data binding) was ...
0
votes
0
answers
121
views
DataSource vs DataContext in Windows Forms DataGridView
Since .NET 7, Microsoft has improved the binding capabilities of Windows Forms to bring it closer to WPF and other XAML technologies: Using Command Binding in Windows Forms apps to go Cross-Platform - ...
0
votes
0
answers
32
views
Handle invalid property value in a custom Control with data binding
Let's say you are creating a custom control with properties that the user may be able to change (either at design time, or during run time), and the property values must fall within specific ...
0
votes
0
answers
85
views
Windows Forms numericUpDown control does not update BindingSource
I have a numericUpDown control bound to a binding source. The bindingsource has a datasource that is a binding list of entities queried using Entity Framework.
_context.Tasks.Load();
_bindingSource....
0
votes
1
answer
37
views
What is needed to see "Databound columns" for DataSource in "Add Column" dialog for DataGridView
I am binding a DataGridView to a BindingList<Thing> by setting the DataSource property in the constructor of the form.
InitializeComponent();
dataGridView1.AutoGenerateColumns = false;
...
0
votes
2
answers
100
views
Powershell + WPF - TreeListView hierarchical checkboxes
I have a problem. I need to create dynamicly created TreeListView with checkboxes. I already have that, but what i need to do, is automaticly select all children nodes, when parent is selected. How ...
0
votes
1
answer
47
views
WinForms data binding without properties
In WinForms, is it possible to databind without using properties?
I've got a class that has some properties that I can databind to, however it also has some user defined custom fields that are only ...
0
votes
2
answers
106
views
Winforms datagridview - variable number of columns - INotifyPropertyChanged
Let's say I have two classes:
public class Hour : INotifyPropertyChanged
{
public int Value
{
// ...
}
// INotifyPropertyChanged implementation
}
public class Day
{
...
0
votes
1
answer
72
views
Bind Datagridview from another thread while in other tabpage
I have a .net winform application, with a simply TabControl.
In one TabPage there is a Datagridview.
In another page i have a button that start a process in another thread. In the callback event i get ...
2
votes
2
answers
118
views
About C# WinForms Data Binding (Using INotifyPropertyChanged) and Data Refreshing Issue
I'm a beginner, and I'm developing a network program using C# WinForms. The program continuously attempts to read data from a remote server and synchronously displays it in my TextBox. Additionally, ...
0
votes
0
answers
26
views
Data binding properties are not saved during user control
This is my lookup object on usercontrol
UserControl
This is my code:
[Bindable(true)]
public CalcEdit ToplamMiktari
{
get { return this.TxtToplamMiktari; }
set { this.TxtToplamMiktari = value; ...
1
vote
2
answers
107
views
Filter binded datagrid so that it displays only items that have a particular value (Winforms)
So in my winforms project I have a datagrid that is binded to a 'Wrestler' class. This class has a number of different properties such as 'Name', 'Gender' ,'Title' (whether the person has a ...