stack panel

Mar 19, 2013 at 2:54 PM
Do you can write to the stack panel?
Coordinator
Mar 19, 2013 at 5:17 PM
Hi


I did not understand your question.
Can you please explain in detail.
Mar 19, 2013 at 5:45 PM
Edited Mar 19, 2013 at 5:45 PM
I would write the values ​​in the highlight bar!

http://www.flickr.com/photos/94184119@N02/8572535330/in/photostream
Mar 19, 2013 at 6:32 PM
Understand with image ?
Coordinator
Mar 19, 2013 at 7:26 PM
Hi

Do you want to change the Group By header contents?

Regards,
bpoojary
Mar 19, 2013 at 7:29 PM
Yes!
Coordinator
Mar 19, 2013 at 7:41 PM
Hi,

Its possible see this links you will understand

http://stackoverflow.com/questions/2147702/wpf-binding-to-current-item-from-within-group-header-style
http://blog.smoura.com/wpf-toolkit-datagrid-part-iv-templatecolumns-and-row-grouping

Basically you need to modify the style of GroupItem

<Style x:Key="GroupHeaderStyle" TargetType="{x:Type GroupItem}">

Hope so this helps you.

Regards,
bpoojary
Mar 19, 2013 at 8:17 PM
always very polite thanks
Mar 20, 2013 at 8:57 AM
Edited Mar 20, 2013 at 9:01 AM
        <Window.Resources>
    <Style x:Key="GroupHeaderStyle" TargetType="{x:Type GroupItem}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type GroupItem}">
                    <Expander IsExpanded="True">
                        <Expander.Header>
                            <StackPanel Orientation="Horizontal">
                                <TextBlock Text="Assign To: "/>
                                <TextBlock Text="{Binding Items[0].Assign_To}"/>
                            </StackPanel>
                        </Expander.Header>
                        <ItemsPresenter/>
                    </Expander>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</Window.Resources>





<ExtendedGridControl:ExtendedDataGrid EnableRowVirtualization="False" GroupByControlVisibility="Visible"
                 EnableColumnVirtualization="False"  VerticalAlignment="Top" x:Name="datagrid2" RowHeaderWidth="35"   HideColumnChooser="False" 
                                          IsSynchronizedWithCurrentItem="True"  SelectionMode="Extended" SelectionUnit="CellOrRowHeader" Margin="128,300,280,0" Height="364" BorderBrush="#FFAEC99E" HorizontalGridLinesBrush="#FF78976F" VerticalGridLinesBrush="#FFC1E4C4" Theme="Media">
        <ExtendedGridControl:ExtendedDataGrid.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFE9E9F3" Offset="0.693"/>
                <GradientStop Color="#FF87C7D1"/>
            </LinearGradientBrush>
        </ExtendedGridControl:ExtendedDataGrid.Background>



        <ExtendedGridControl:ExtendedDataGrid.GroupStyle>
            <GroupStyle ContainerStyle="{StaticResource GroupHeaderStyle}">
                <GroupStyle.Panel>
                    <ItemsPanelTemplate>
                        <DataGridRowsPresenter/>
                    </ItemsPanelTemplate>
                </GroupStyle.Panel>
            </GroupStyle>
        </ExtendedGridControl:ExtendedDataGrid.GroupStyle>

it's ok ?
Mar 20, 2013 at 2:32 PM
Please!
Coordinator
Mar 20, 2013 at 4:01 PM
Hi,


Can you please explain what you want to showing group by item?
From above code you won't be able to active much.
Follow my links where you will find people playing with GroupItem style.


Regards,
Bpoojary
Coordinator
Mar 20, 2013 at 7:52 PM
Hi,


Can you please explain what you want to show in group by item?
From above code you won't be able to achieve much.
Follow my links where you will find people playing with GroupItem style.

<Style x:Key="GroupHeaderStyle" TargetType="{x:Type GroupItem}">

http://stackoverflow.com/questions/2147702/wpf-binding-to-current-item-from-within-group-header-style
http://blog.smoura.com/wpf-toolkit-datagrid-part-iv-templatecolumns-and-row-grouping

Regards,
Bpoojary
Mar 25, 2013 at 12:14 PM
Edited Mar 25, 2013 at 12:16 PM
I'd like to see the values ​​of the cells in the header of the grouping

I tried not to mistake this Macré the desired result


<ExtendedGridControl:ExtendedDataGrid.GroupStyle>
            <GroupStyle>
                <GroupStyle.ContainerStyle>
                <Style TargetType="{x:Type GroupItem}">
                    <Setter Property="Margin" Value="0,0,0,5"/>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="{x:Type GroupItem}">
                                <Expander IsExpanded="false" Background="#FF112255" BorderBrush="#FF002255" Foreground="#FFEEEEEE" BorderThickness="1,1,1,5">
                                    <Expander.Header>
                                        <DockPanel>
                                            <TextBlock FontWeight="Bold" Text="ciaooo"/>

                                        </DockPanel>
                                    </Expander.Header>
                                    <Expander.Content>
                                        <ItemsPresenter />
                                    </Expander.Content>
                                </Expander>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
            </GroupStyle.ContainerStyle>

            </GroupStyle>
        </ExtendedGridControl:ExtendedDataGrid.GroupStyle>
Coordinator
Mar 25, 2013 at 7:38 PM
Try to Bind the values as shown below

<Style x:Key="GroupHeaderStyle" TargetType="{x:Type GroupItem}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type GroupItem}">
                    <Expander IsExpanded="True">
                        <Expander.Header>
                            __<StackPanel Orientation="Horizontal">
                                <TextBlock Text="Name: "/>
                                <TextBlock Text="{Binding FirstName}"/>
                                 <TextBlock Text="{Binding LastName}"/>
                            </StackPanel>       __
                        </Expander.Header>
                        <ItemsPresenter/>
                    </Expander>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>