Silverlight - rebinding to a property?
Posted
by bplus
on Stack Overflow
See other posts from Stack Overflow
or by bplus
Published on 2010-05-04T11:32:36Z
Indexed on
2010/05/04
11:38 UTC
Read the original article
Hit count: 306
Hello, I'm just getting started with silverlight. Basically I have a silverlight user control that has various dataGrids and a combobox, their item sources set to the properties of a custom plain c# object. My problem is that I have a dropdown list that when a user selects an item from the list a new row should appear in one of the grids. All I'm doing is handling the SelectionChanged event and adding a new item to to a list in my custom object and setting the itemsource for the grid again. This doesnt seem to work; no row is added to the dataGrid I have no idea how to force my grid to "rebind" to this property. I've been reading about dependency properties, are these what I need?
Any pointers would be really appreciated.
© Stack Overflow or respective owner