Goober
Goober

Reputation: 13508

C# WPF - Binding Dictionary to DataGrid

Scenario

Help Greatly appreciated, Thanks.

Upvotes: 1

Views: 4875

Answers (1)

Muad'Dib
Muad'Dib

Reputation: 29216

the datagrid will not update if you use a normal dictionary. Your data structure must notify the world when an item in it changes for it to update the grid. the grid will not, normally, lose focus. Check out Dr. WPF for a nice article on this.

What you need is a dictionary that will pass item updates (not when an item is added/removed).

Upvotes: 2

Related Questions