첨부 소스 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170
<Grid xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid">
    <Grid.Resources>
        <DataTemplate x:Key="TotalSummaryDataTemplateKey">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="20" />
                    <ColumnDefinition Width="*"  />
                </Grid.ColumnDefinitions>
                <Image
                    Grid.Column="0"
                    Margin="1"
                    Stretch="None"
                    Source="Image/rectangle.png" />
                <TextBlock
                    Grid.Column="1"
                    Margin="1"
                    Text="{Binding Path=Column.TotalSummaryText}" />
            </Grid>
        </DataTemplate>
    </Grid.Resources>
    <dxg:GridControl x:Name="gridControl">
        <dxg:GridControl.Columns>
            <dxg:GridColumn FieldName="ProductName" />
            <dxg:GridColumn FieldName="UnitPrice"   />
            <dxg:GridColumn FieldName="Selected"    />
        </dxg:GridControl.Columns>
        <dxg:GridControl.View>
            <dxg:TableView x:Name="tableView"
                ShowGroupPanel="False"
                NavigationStyle="Row"
                ShowTotalSummary="True"
                TotalSummaryItemTemplate="{StaticResource TotalSummaryDataTemplateKey}" />
        </dxg:GridControl.View>
        <dxg:GridControl.TotalSummary>
            <dxg:GridSummaryItem
                FieldName="UnitPrice"
                SummaryType="Custom" />
        </dxg:GridControl.TotalSummary>
    </dxg:GridControl>
</Grid>
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요