Click here to Skip to main content
15,888,401 members
Home / Discussions / WPF
   

WPF

 
QuestionShow datagrid rowdetail template on click of DataGridCheckBoxColumn Pin
Ankur Cistems18-Mar-11 1:26
Ankur Cistems18-Mar-11 1:26 
AnswerRe: Show datagrid rowdetail template on click of DataGridCheckBoxColumn Pin
Pete O'Hanlon18-Mar-11 2:11
mvePete O'Hanlon18-Mar-11 2:11 
GeneralRe: Show datagrid rowdetail template on click of DataGridCheckBoxColumn Pin
Ankur Cistems18-Mar-11 2:27
Ankur Cistems18-Mar-11 2:27 
GeneralRe: Show datagrid rowdetail template on click of DataGridCheckBoxColumn Pin
Pete O'Hanlon18-Mar-11 2:31
mvePete O'Hanlon18-Mar-11 2:31 
GeneralRe: Show datagrid rowdetail template on click of DataGridCheckBoxColumn Pin
Ankur Cistems18-Mar-11 2:57
Ankur Cistems18-Mar-11 2:57 
GeneralRe: Show datagrid rowdetail template on click of DataGridCheckBoxColumn Pin
Mycroft Holmes18-Mar-11 14:19
professionalMycroft Holmes18-Mar-11 14:19 
GeneralRe: Show datagrid rowdetail template on click of DataGridCheckBoxColumn Pin
Pete O'Hanlon18-Mar-11 23:10
mvePete O'Hanlon18-Mar-11 23:10 
GeneralRe: Show datagrid rowdetail template on click of DataGridCheckBoxColumn Pin
Ankur Cistems20-Mar-11 21:11
Ankur Cistems20-Mar-11 21:11 
thanks for tips, I am now successfully able to bind the BlogIsSelected property to the grid checkbox column. but I am not able to acheive following with the code below

1) Show detail grid only when it checkbox is selected
2) attach event to checkbox column, I did not find any click event for this column

Can you please correct the xaml I am using

Thanks
Ankur bhargava

<DataGrid x:Name="FamilyEditorGrid" ItemsSource="{Binding Path=AllBlogs}" MaxHeight="575"
                        Background="{x:Null}"                                         
                        Margin="0,0,0,0"
                        BorderBrush="{x:Null}"
                        AutoGenerateColumns="False"
                        SelectionMode="Single"
                        GridLinesVisibility="None"  
                        RowDetailsTemplate="{StaticResource RowDetailItemTemplate}"
                        RowDetailsVisibilityMode="{Binding Path=BlogIsSelected, Converter={StaticResource boolToVisibilityConverter}}"
                        >
                        <DataGrid.CellStyle>
                            <Style TargetType="{x:Type DataGridCell}">
                                <Setter Property="VerticalContentAlignment" Value="Center" />
                            </Style>
                           
                        </DataGrid.CellStyle>

                        <!--<DataGrid.RowStyle>
                            <Style TargetType="{x:Type DataGridRow}">
                                <Setter Property="Height" Value="32" />
                            </Style>
                        </DataGrid.RowStyle>-->
                        <DataGrid.Columns>
                            <DataGridCheckBoxColumn Header=""                                                           
                                Binding="{Binding Path=BlogIsSelected}"
                                SortMemberPath="BlogIsSelected" Width="35" 
                                />
                            <DataGridTextColumn Header="Blog URL"                                                           
                                Binding="{Binding BlogURL}"
                                SortMemberPath="BlogURL"
                                IsReadOnly="True" Width="auto" />
</DataGrid.Columns>
                        
                    </DataGrid>

QuestionBinding to a RepeatBehavior property Pin
Lutosław17-Mar-11 11:18
Lutosław17-Mar-11 11:18 
AnswerRe: Binding to a RepeatBehavior property Pin
Lutosław17-Mar-11 11:20
Lutosław17-Mar-11 11:20 
GeneralRe: Binding to a RepeatBehavior property Pin
Pete O'Hanlon17-Mar-11 11:30
mvePete O'Hanlon17-Mar-11 11:30 
QuestionCustom Pagination with WCF Service and stored proc. Pin
Member 776277317-Mar-11 4:53
Member 776277317-Mar-11 4:53 
AnswerRe: Custom Pagination with WCF Service and stored proc. Pin
Mycroft Holmes17-Mar-11 12:43
professionalMycroft Holmes17-Mar-11 12:43 
QuestionHow get & set pixel in WPFapplication? Pin
humais16-Mar-11 4:48
humais16-Mar-11 4:48 
AnswerRe: How get & set pixel in WPFapplication? Pin
John Schroedl20-Mar-11 9:55
professionalJohn Schroedl20-Mar-11 9:55 
Questionsorting autocompletebox items (wpf toolkit) Pin
Moonwalker03115-Mar-11 22:35
Moonwalker03115-Mar-11 22:35 
AnswerRe: sorting autocompletebox items (wpf toolkit) Pin
Mycroft Holmes15-Mar-11 23:18
professionalMycroft Holmes15-Mar-11 23:18 
GeneralRe: sorting autocompletebox items (wpf toolkit) Pin
Moonwalker03116-Mar-11 0:50
Moonwalker03116-Mar-11 0:50 
GeneralRe: sorting autocompletebox items (wpf toolkit) Pin
Mycroft Holmes16-Mar-11 1:13
professionalMycroft Holmes16-Mar-11 1:13 
GeneralRe: sorting autocompletebox items (wpf toolkit) Pin
Moonwalker03116-Mar-11 2:05
Moonwalker03116-Mar-11 2:05 
AnswerRe: sorting autocompletebox items (wpf toolkit) Pin
Pete O'Hanlon16-Mar-11 2:25
mvePete O'Hanlon16-Mar-11 2:25 
GeneralRe: sorting autocompletebox items (wpf toolkit) Pin
Moonwalker03116-Mar-11 3:35
Moonwalker03116-Mar-11 3:35 
Question"Status Bar" Text in IE Pin
souravghosh1814-Mar-11 21:20
souravghosh1814-Mar-11 21:20 
AnswerRe: "Status Bar" Text in IE Pin
Abhinav S14-Mar-11 21:51
Abhinav S14-Mar-11 21:51 
GeneralRe: "Status Bar" Text in IE Pin
souravghosh1814-Mar-11 22:02
souravghosh1814-Mar-11 22:02 

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.