Click here to Skip to main content
15,922,407 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Silverlight and Asp.Net Pin
Mark Salsbery20-Mar-09 6:18
Mark Salsbery20-Mar-09 6:18 
GeneralRe: Silverlight and Asp.Net Pin
Jason Wilczak20-Mar-09 11:44
Jason Wilczak20-Mar-09 11:44 
QuestionAm I missing someting ? Pin
Christian Graus19-Mar-09 13:04
protectorChristian Graus19-Mar-09 13:04 
AnswerRe: Am I missing someting ? Pin
Mark Salsbery19-Mar-09 14:27
Mark Salsbery19-Mar-09 14:27 
GeneralRe: Am I missing someting ? Pin
Christian Graus19-Mar-09 16:02
protectorChristian Graus19-Mar-09 16:02 
QuestionCPU Usage chart in Silverlight Pin
farhan134219-Mar-09 9:24
farhan134219-Mar-09 9:24 
AnswerRe: CPU Usage chart in Silverlight Pin
Mark Salsbery20-Mar-09 6:30
Mark Salsbery20-Mar-09 6:30 
QuestionDataGridCheckboxColumn bind to EF Many-To-Many Relationship Pin
Wouter Van Ranst19-Mar-09 8:21
Wouter Van Ranst19-Mar-09 8:21 
Hi All. I am working on a project with WPF (DataGrid) and ADO.NET EF.
The relevant piece of the EF model is shown below. Notice the *--* relationship between Location and ArticleClass.

EF Model[^]

The datagrid in the right hand upper corner (A) lists all the names of the ArticleClasses
The datagrid on the bottom (L) lists all the available Locations.

WPF Form[^]

What I want to do is, when I check the CanHaveAsArticle checkbox of a certain ArticleClass in (A), that a relationship is made (remember the *--*) between the selected Locations in (L) and the checked ArticleClasses in (A).
How can I do this using databinding?
I've tried a ValueConvertor but the instance doesn't know which rows of (L) are selected.
[...]
<my:DataGrid.Columns>
<my:DataGridTextColumn Header="Name" Binding="{Binding Path=Name}" IsReadOnly="True" />
<my:DataGridCheckBoxColumn Header="CanHaveAsArticle" Binding="{Binding Path=Locations, Converter={StaticResource myRelationshipManager}}" />
</my:DataGrid.Columns>
[...]
I've thought about binding it to a property in the Window.xaml.vb file where the setter creates the relationship (something like Location.ArticleClass.Add(L.SelectedRow)) and the getter checks whether there is a relationship, but I dont seem to find out how.
Thanks,
Wouter
QuestionWPF ListBox/ComboBox with multiple items of same value Pin
BRShroyer19-Mar-09 3:44
BRShroyer19-Mar-09 3:44 
AnswerRe: WPF ListBox/ComboBox with multiple items of same value Pin
ABitSmart19-Mar-09 4:38
ABitSmart19-Mar-09 4:38 
GeneralRe: WPF ListBox/ComboBox with multiple items of same value Pin
BRShroyer19-Mar-09 6:03
BRShroyer19-Mar-09 6:03 
GeneralRe: WPF ListBox/ComboBox with multiple items of same value Pin
w3stfa1129-Nov-09 18:13
w3stfa1129-Nov-09 18:13 
QuestionUIcontrol.Dispatcher.CheckAccess() Pin
Jammer19-Mar-09 1:56
Jammer19-Mar-09 1:56 
AnswerRe: UIcontrol.Dispatcher.CheckAccess() Pin
ABitSmart19-Mar-09 2:23
ABitSmart19-Mar-09 2:23 
GeneralRe: UIcontrol.Dispatcher.CheckAccess() Pin
Jammer19-Mar-09 2:39
Jammer19-Mar-09 2:39 
AnswerRe: UIcontrol.Dispatcher.CheckAccess() Pin
Pete O'Hanlon19-Mar-09 2:23
mvePete O'Hanlon19-Mar-09 2:23 
GeneralRe: UIcontrol.Dispatcher.CheckAccess() Pin
Jammer19-Mar-09 2:43
Jammer19-Mar-09 2:43 
GeneralRe: UIcontrol.Dispatcher.CheckAccess() Pin
Pete O'Hanlon19-Mar-09 3:33
mvePete O'Hanlon19-Mar-09 3:33 
QuestionAdding Window in TabItem Pin
jear7719-Mar-09 1:44
jear7719-Mar-09 1:44 
AnswerRe: Adding Window in TabItem Pin
ABitSmart19-Mar-09 2:31
ABitSmart19-Mar-09 2:31 
QuestionReset Storyboard on complete. Pin
emptythetill19-Mar-09 0:38
emptythetill19-Mar-09 0:38 
AnswerRe: Reset Storyboard on complete. Pin
sivaddrahcir23-Mar-09 13:39
sivaddrahcir23-Mar-09 13:39 
QuestionExporting Grid to PDF Pin
sumit703418-Mar-09 20:50
sumit703418-Mar-09 20:50 
AnswerRe: Exporting Grid to PDF Pin
Mark Salsbery19-Mar-09 7:04
Mark Salsbery19-Mar-09 7:04 
AnswerRe: Exporting Grid to PDF Pin
Braulio Dez1-Apr-09 5:59
Braulio Dez1-Apr-09 5:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.