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 – .NET Blog
So, among other things, the DataContext
property was included in Windows Forms controls (Control.DataContext Property), similar to WPF (FrameworkElement.DataContext Property).
However, in controls such as DataGridView
, which had the DataSource
property (DataGridView.DataSource Property), the two properties began to coexist.
But what would be the difference between the two?