zoukankan      html  css  js  c++  java
  • GridControl

    <dxg:GridControl Name="grid" 
                                 ItemsSource="{Binding }" AutoExpandAllGroups="True" 
                                 AllowDrop="False"  IsFilterEnabled="False">
                    <dxg:GridControl.Columns>
                        <dxg:GridColumn FieldName="Weekday" MinWidth="30" GroupIndex="0">
                            
                            <dxg:GridColumn.GroupValueTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding Path=Value,Converter={StaticResource weekdayConverter}}" Margin="5,0,0,0" />
                                </DataTemplate>
                            </dxg:GridColumn.GroupValueTemplate>
                        </dxg:GridColumn>
                        
                        <dxg:GridColumn FieldName="Starttime" MinWidth="30">
                            <dxg:GridColumn.CellTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding Path=Value,Converter={StaticResource dateTimeConverter},ConverterParameter='HHmm'}" VerticalAlignment="Center" />
                                </DataTemplate>
                            </dxg:GridColumn.CellTemplate>
                        </dxg:GridColumn>
                        
                        <dxg:GridColumn FieldName="Endtime" MinWidth="30">
                            <dxg:GridColumn.CellTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding Path=Value,Converter={StaticResource dateTimeConverter},ConverterParameter='HHmm'}" VerticalAlignment="Center" />
                                </DataTemplate>
                            </dxg:GridColumn.CellTemplate>
                            
                        </dxg:GridColumn>
                        
                        <dxg:GridColumn MinWidth="30" >
                            <dxg:GridColumn.CellTemplate>
                                <DataTemplate>
                                <Button Width="80" Name="btnDelete" Click="btnDelete_Click">Delete</Button>
                                </DataTemplate>
                            </dxg:GridColumn.CellTemplate>
                        </dxg:GridColumn>
                    </dxg:GridControl.Columns>
                    
                    <dxg:GridControl.GroupSummary>
                        <dxg:GridSummaryItem SummaryType="Count" />
                    </dxg:GridControl.GroupSummary>
                    
                    <dxg:GridControl.View>
                        <dxg:TableView Name="view" AllowGrouping="False" AllowEditing="False" 
                                       AllowColumnFiltering="False" AllowSorting="False" AllowDrop="False" 
                                       AllowMoving="False" ShowGroupedColumns="False" 
                                       ShowGroupPanel="False"   AutoWidth="True" NavigationStyle="Row" />
                    </dxg:GridControl.View>
                </dxg:GridControl>

  • 相关阅读:
    jQuery中的一些操作
    laravel使用消息队列
    Laravel的开发环境Homestead的搭建与配置
    python爬虫学习
    配置文件
    sql根据时间差查询数据
    Oracle根据连接字符串获取库下的表列表、获取表结构
    Sql根据连接字符串获取库下的表列表、获取表结构
    判断网络连接
    线程锁,解决多线程并发问题
  • 原文地址:https://www.cnblogs.com/quietwalk/p/3531636.html
Copyright © 2011-2022 走看看