Silverlight 4.0 Silverlight数据网格中的冻结列
我有一个数据网格,需要冻结最右边的列。使用FrozenColumnCount属性从左到右冻结列没有问题 你们有谁知道怎么做吗Silverlight 4.0 Silverlight数据网格中的冻结列,silverlight-4.0,Silverlight 4.0,我有一个数据网格,需要冻结最右边的列。使用FrozenColumnCount属性从左到右冻结列没有问题 你们有谁知道怎么做吗 我有麻烦了,有人请用标准数据网格帮助我。答案是否定的。请参阅我之前对同一问题的回答: 对于标准数据网格,答案是否定的。请参阅我之前对同一问题的回答: 可以使用起始列来完成。 无法对最后一列执行此操作 <sdk:DataGridTemplateColumn Width="50" CellStyle="{StaticResource CenterAllignmentCe
我有麻烦了,有人请用标准数据网格帮助我。答案是否定的。请参阅我之前对同一问题的回答:
对于标准数据网格,答案是否定的。请参阅我之前对同一问题的回答:
可以使用起始列来完成。 无法对最后一列执行此操作
<sdk:DataGridTemplateColumn Width="50" CellStyle="{StaticResource CenterAllignmentCell}">
<sdk:DataGridTemplateColumn.CellTemplate>
<DataTemplate >
<Button x:Name="btnDelete" Width="16" Height="16" Cursor="Hand" Content="Delete" Margin="0,0,0,0" Command="{Binding DeleteCommand,Source={StaticResource AlertListViewModel}}"
CommandParameter="{Binding AlertId}" HorizontalAlignment="Center" IsEnabled="{Binding IsDeleteRight,Source={StaticResource AlertListViewModel}}">
<Button.Template>
<ControlTemplate>
<Image Width="16" Height="16" Source="/TFM;component/Images/ic-delete.png" ToolTipService.ToolTip="Delete"/>
</ControlTemplate>
</Button.Template>
</Button>
</DataTemplate>
</sdk:DataGridTemplateColumn.CellTemplate>
</sdk:DataGridTemplateColumn>
</sdk:DataGrid.Columns>
可以使用起始列来完成。 无法对最后一列执行此操作
<sdk:DataGridTemplateColumn Width="50" CellStyle="{StaticResource CenterAllignmentCell}">
<sdk:DataGridTemplateColumn.CellTemplate>
<DataTemplate >
<Button x:Name="btnDelete" Width="16" Height="16" Cursor="Hand" Content="Delete" Margin="0,0,0,0" Command="{Binding DeleteCommand,Source={StaticResource AlertListViewModel}}"
CommandParameter="{Binding AlertId}" HorizontalAlignment="Center" IsEnabled="{Binding IsDeleteRight,Source={StaticResource AlertListViewModel}}">
<Button.Template>
<ControlTemplate>
<Image Width="16" Height="16" Source="/TFM;component/Images/ic-delete.png" ToolTipService.ToolTip="Delete"/>
</ControlTemplate>
</Button.Template>
</Button>
</DataTemplate>
</sdk:DataGridTemplateColumn.CellTemplate>
</sdk:DataGridTemplateColumn>
</sdk:DataGrid.Columns>