첨부 소스 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170
<Grid xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid">
    <Grid.Resources>
        <DataTemplate x:Key="ProductHeaderDataTemplateKey">
            <StackPanel Orientation="Horizontal">
                <Image
                    Stretch="None"
                    Source="Product.png" />
                <TextBlock
                    Margin="5 0 0 0"
                    Foreground="WhiteSmoke"
                    FontWeight="Bold"
                    Text="{Binding}" />
            </StackPanel>
        </DataTemplate>
    </Grid.Resources>
    <dxg:GridControl x:Name="gridControl">
        <dxg:GridControl.Columns>
            <dxg:GridColumn
                HeaderTemplate="{StaticResource ProductHeaderDataTemplateKey}"
                FieldName="ProductName">
                Product
            </dxg:GridColumn>
            <dxg:GridColumn FieldName="UnitPrice">
                Unit Price
            </dxg:GridColumn>
            <dxg:GridColumn FieldName="OrderUnit">
                Order Unit
            </dxg:GridColumn>
        </dxg:GridControl.Columns>
        <dxg:GridControl.View>
            <dxg:TableView AutoWidth="True" />
        </dxg:GridControl.View>
    </dxg:GridControl>
</Grid>
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요