Logo Microsoft
Données & RechercheSûr9393/100

Managing Winforms Data Binding (Microsoft)

Implements WinForms data binding patterns with BindingSource, INotifyPropertyChanged, validation, and master-detail scenarios. Use when binding controls using DataBindings.Add, setting up BindingSource with DataSource, implementing INotifyPropertyChanged for automatic UI updates, creating two-way bindings between controls and data objects, using BindingSource.Filter or BindingSource.Sort, implementing master-detail relationships with related BindingSources, handling binding validation with ErrorProvider, or troubleshooting binding update issues and performance. Also triggers for "BindingSource", "DataBindings.Add", "INotifyPropertyChanged WinForms", "two-way binding", "ErrorProvider", "master-detail binding", "BindingNavigator", "DataSource binding", and "WinForms data binding".

ou envoie-le directement à ton agent.

Installer dans ton projet

$ curl -fsSL https://arboristhree.xyz/cli/install-skill.mjs -o /tmp/arboris-install-skill.mjs && node /tmp/arboris-install-skill.mjs managing-winforms-data-binding__microsoft-upgrade-agent-plugins__plugins-upgrade-agent-extenders-upgrade-dotnet-upgrade-skills-lazy-desktop-winfo-feff100e9e85
Logo Microsoft
Microsoft
microsoft/upgrade-agent-plugins
Contenu à copier
---

name: managing-winforms-data-binding
description: >
  Implements WinForms data binding patterns with BindingSource, INotifyPropertyChanged,
  validation, and master-detail scenarios. Use when binding controls using DataBindings.Add,
  setting up BindingSource with DataSource, implementing INotifyPropertyChanged for automatic
  UI updates, creating two-way bindings between controls and data objects, using
  BindingSource.Filter or BindingSource.Sort, implementing master-detail relationships with
  related BindingSources, handling binding validation with ErrorProvider, or troubleshooting
  binding update issues and performance. Also triggers for "BindingSource", "DataBindings.Add",
  "INotifyPropertyChanged WinForms", "two-way binding", "ErrorProvider", "master-detail
  binding", "BindingNavigator", "DataSource binding", and "WinForms data binding".
metadata:
  origin: Microsoft
  discovery: lazy
  traits: (.NET|CSharp|VisualBasic|DotNetCore) & WindowsForms
---


# WinForms Data Binding Guide

Data binding in WinForms enables automatic synchronization between UI controls and data sources, eliminating manual property updates and keeping view and data in sync.

## When to Use This Skill

Use this skill when:

- Binding Label, TextBox, Button, ComboBox, or other controls to data objects
- Implementing two-way data binding
- Working with BindingSource components
- Creating master-detail data relationships
- Setting up DataGridView with data sources
- Implementing data validation with ErrorProvider
- Converting between WPF/MAUI ObservableCollection and WinForms BindingList
- Creating .datasource files for Designer support in the PropertyGrid's BindingPicker
- Troubleshooting binding updates or performance issues

## Related Skills

- [WinForms Development](../building-winforms-applications/SKILL.md)
- [WinForms Designer Code](../managing-winforms-designer-code/SKILL.md)
- [WinForms MVVM](../managing-winforms-mvvm/SKILL.md)
- [WinForms Async APIs](../managing-winforms-async-apis/SKILL.md)
- [WinForms Custom Controls and UserControls](../creating-winforms-custom-controls/SKILL.md)


## Detailed Guidance
Read [Detailed guide](ref/detailed-guide.md) for comprehensive patterns, examples, and troubleshooting.

## Workflow
1. Confirm the scenario matches the triggers in this skill.
2. Apply the baseline pattern from this file.
3. Read [Detailed guide](ref/detailed-guide.md) for advanced or edge-case handling.
4. Validate changes with an actual build and runtime check.
Colle ce Markdown dans ton agent ou utilise les boutons ci-dessus pour l’écrire dans ton projet.

Ce que fait Managing Winforms Data Binding (Microsoft)

Binding Label, TextBox, Button, ComboBox, or other controls to data objects
Implementing two-way data binding
Working with BindingSource components
Creating master-detail data relationships

Comment utiliser Managing Winforms Data Binding (Microsoft)

1
Copie le prompt
Un clic copie le prompt packagé (ou l'envoie à ton agent).
2
L'agent installe le skill
Il ajoute le SKILL.md et ses ressources à ton projet.
3
Activation automatique
Le skill s'active dès que le contexte correspond.

Déclencheurs pour Managing Winforms Data Binding (Microsoft)

Dis simplement à ton agent quelque chose comme :

Applique le skill managing-winforms-data-binding__microsoft-upgrade-agent-plugins__plugins-upgrade-agent-extenders-upgrade-dotnet-upgrade-skills-lazy-desktop-winfo-feff100e9e85 à cette tâche
Utilise managing-winforms-data-binding__microsoft-upgrade-agent-plugins__plugins-upgrade-agent-extenders-upgrade-dotnet-upgrade-skills-lazy-desktop-winfo-feff100e9e85 pour améliorer cette implémentation
Passe en revue ce sujet avec managing-winforms-data-binding__microsoft-upgrade-agent-plugins__plugins-upgrade-agent-extenders-upgrade-dotnet-upgrade-skills-lazy-desktop-winfo-feff100e9e85

Skills liés à Managing Winforms Data Binding (Microsoft)