Click here to Skip to main content
13,762,351 members

Silverlight / WPF

 
QuestionWPF ComboBox With User Control Pin
Kevin Marois30-Mar-13 11:24
professionalKevin Marois30-Mar-13 11:24 
AnswerRe: WPF ComboBox With User Control(This may not work.) Pin
David C# Hobbyist.30-Mar-13 11:52
professionalDavid C# Hobbyist.30-Mar-13 11:52 
GeneralRe: WPF ComboBox With User Control(This may not work.) Pin
Kevin Marois30-Mar-13 12:09
professionalKevin Marois30-Mar-13 12:09 
GeneralRe: WPF ComboBox With User Control(This may not work.) Pin
David C# Hobbyist.30-Mar-13 12:24
professionalDavid C# Hobbyist.30-Mar-13 12:24 
AnswerRe: WPF ComboBox With User Control Pin
SledgeHammer0130-Mar-13 14:19
memberSledgeHammer0130-Mar-13 14:19 
GeneralWindows 8 WPF Theme? Pin
Member 982361928-Mar-13 18:20
memberMember 982361928-Mar-13 18:20 
GeneralRe: Windows 8 WPF Theme? Pin
Meshack Musundi4-Apr-13 8:48
professionalMeshack Musundi4-Apr-13 8:48 
QuestionC# WPF Accessing parameter of chosen data grid row Pin
johnyjj228-Mar-13 10:55
memberjohnyjj228-Mar-13 10:55 
Hello,

I have data grid as follows:

<DataGrid Grid.Row="8" Grid.Column="0" Margin="5" Grid.ColumnSpan="3" Name="dgrNumericalParameters" ItemsSource="{Binding}">
    <DataGrid.RowDetailsTemplate>
        <DataTemplate>
            <DataGrid Name="innerGrid"></DataGrid>
        </DataTemplate>
    </DataGrid.RowDetailsTemplate>
</DataGrid>


I want to dynamically allow the user to click one row in outter grid so that inner grid is displayed (similarly as it is done here: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/8f368d8b-0d06-4219-80f8-e8108f219fc2/).

However, the content of inner data grid (both its columns and values of corresponding rows) depend on row selected in outter grid.

This is why I need to check parameter's name (or rather parameter of object inside object). And my problem is that I cannot. What could be the reason of that?

In summary, how can I access dgrNumericalParameters.parameterName if I can access dgrNumericalParameters.SelectedIndex and parameterName is visible in IDE?

I attach some screenshots that may clarify it.

http://s20.postimg.org/dji7xyzwt/selected_Item1.png
http://s20.postimg.org/jlpuogoct/selected_Item2.png
http://s20.postimg.org/4ag1nur0t/selected_Item3.png
http://s20.postimg.org/sxbwlf0wd/selected_Item4.png[^]

Best regards!

PS I was asked to move original topic (http://www.codeproject.com/Messages/4528549/Csharp-WPF-Accessing-parameter-of-chosen-data-grid.aspx[^]) to here.

PS2 I am closer to what I want to achieve:

http://s20.postimg.org/dwisvmwy5/selected_Item5.png[^
http://s20.postimg.org/6522x2sst/selected_Item6.png[^]

However, I still cannot access enumeration values to create innerGrid with columns equal to values from that enumeration. I want the user to be able to add or delete enumeration values.
QuestionExtending WPF WebBrowser Control Pin
Coxianuk28-Mar-13 7:48
memberCoxianuk28-Mar-13 7:48 
AnswerRe: Extending WPF WebBrowser Control Pin
Richard Deeming28-Mar-13 10:19
mvpRichard Deeming28-Mar-13 10:19 
GeneralRe: Extending WPF WebBrowser Control Pin
Coxianuk28-Mar-13 11:26
memberCoxianuk28-Mar-13 11:26 
GeneralRe: Extending WPF WebBrowser Control Pin
David C# Hobbyist.28-Mar-13 11:52
professionalDavid C# Hobbyist.28-Mar-13 11:52 
QuestionWindows Phone App Development using C# 2010 Pin
TwiztedFreek26-Mar-13 19:16
memberTwiztedFreek26-Mar-13 19:16 
QuestionRe: Windows Phone App Development using C# 2010 Pin
Richard MacCutchan27-Mar-13 0:00
protectorRichard MacCutchan27-Mar-13 0:00 
AnswerRe: Windows Phone App Development using C# 2010 Pin
Abhinav S27-Mar-13 19:02
memberAbhinav S27-Mar-13 19:02 
QuestionLooking for a windows phone 7.1 XNA programmer Pin
Member 955005526-Mar-13 0:09
memberMember 955005526-Mar-13 0:09 
AnswerRe: Looking for a windows phone 7.1 XNA programmer Pin
Richard MacCutchan26-Mar-13 1:09
protectorRichard MacCutchan26-Mar-13 1:09 
AnswerRe: Looking for a windows phone 7.1 XNA programmer Pin
Marco Bertschi26-Mar-13 2:15
protectorMarco Bertschi26-Mar-13 2:15 
QuestionCode-generated buttons in Stackpanel: how to handle events? Pin
Dirk.Bock22-Mar-13 13:24
memberDirk.Bock22-Mar-13 13:24 
AnswerRe: Code-generated buttons in Stackpanel: how to handle events? Pin
Mycroft Holmes22-Mar-13 15:14
memberMycroft Holmes22-Mar-13 15:14 
AnswerRe: Code-generated buttons in Stackpanel: how to handle events? Pin
Gerry Schmitz22-Mar-13 15:51
memberGerry Schmitz22-Mar-13 15:51 
QuestionMVVM Tasks and UI Updating Pin
cjb11022-Mar-13 2:44
membercjb11022-Mar-13 2:44 
AnswerRe: MVVM Tasks and UI Updating Pin
Matt T Heffron22-Mar-13 11:25
professionalMatt T Heffron22-Mar-13 11:25 
GeneralRe: MVVM Tasks and UI Updating Pin
cjb11024-Mar-13 23:37
membercjb11024-Mar-13 23:37 
GeneralRe: MVVM Tasks and UI Updating Pin
cjb11025-Mar-13 2:56
membercjb11025-Mar-13 2:56 

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.


Advertise | Privacy | Cookies | Terms of Service
Web01-2016 | 2.8.181111.1 | Last Updated 6 Nov 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid