Click here to Skip to main content
15,885,546 members
Home / Discussions / WPF
   

WPF

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

I have data grid as follows:

XML
<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 6:48
Coxianuk28-Mar-13 6:48 
AnswerRe: Extending WPF WebBrowser Control Pin
Richard Deeming28-Mar-13 9:19
mveRichard Deeming28-Mar-13 9:19 
GeneralRe: Extending WPF WebBrowser Control Pin
Coxianuk28-Mar-13 10:26
Coxianuk28-Mar-13 10:26 
GeneralRe: Extending WPF WebBrowser Control Pin
David C# Hobbyist.28-Mar-13 10:52
professionalDavid C# Hobbyist.28-Mar-13 10:52 
QuestionWindows Phone App Development using C# 2010 Pin
TwiztedFreek26-Mar-13 18:16
TwiztedFreek26-Mar-13 18:16 
QuestionRe: Windows Phone App Development using C# 2010 Pin
Richard MacCutchan26-Mar-13 23:00
mveRichard MacCutchan26-Mar-13 23:00 
AnswerRe: Windows Phone App Development using C# 2010 Pin
Abhinav S27-Mar-13 18:02
Abhinav S27-Mar-13 18:02 
QuestionLooking for a windows phone 7.1 XNA programmer Pin
Member 955005525-Mar-13 23:09
Member 955005525-Mar-13 23:09 
AnswerRe: Looking for a windows phone 7.1 XNA programmer Pin
Richard MacCutchan26-Mar-13 0:09
mveRichard MacCutchan26-Mar-13 0:09 
AnswerRe: Looking for a windows phone 7.1 XNA programmer Pin
Marco Bertschi26-Mar-13 1:15
protectorMarco Bertschi26-Mar-13 1:15 
QuestionCode-generated buttons in Stackpanel: how to handle events? Pin
Dirk.Bock22-Mar-13 12:24
Dirk.Bock22-Mar-13 12:24 
AnswerRe: Code-generated buttons in Stackpanel: how to handle events? Pin
Mycroft Holmes22-Mar-13 14:14
professionalMycroft Holmes22-Mar-13 14:14 
AnswerRe: Code-generated buttons in Stackpanel: how to handle events? Pin
Gerry Schmitz22-Mar-13 14:51
mveGerry Schmitz22-Mar-13 14:51 
QuestionMVVM Tasks and UI Updating Pin
cjb11022-Mar-13 1:44
cjb11022-Mar-13 1:44 
AnswerRe: MVVM Tasks and UI Updating Pin
Matt T Heffron22-Mar-13 10:25
professionalMatt T Heffron22-Mar-13 10:25 
GeneralRe: MVVM Tasks and UI Updating Pin
cjb11024-Mar-13 22:37
cjb11024-Mar-13 22:37 
GeneralRe: MVVM Tasks and UI Updating Pin
cjb11025-Mar-13 1:56
cjb11025-Mar-13 1: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.