回复 2楼Alice的帖子
我也使用了随机安装demo CustomColumnsPage.xaml 这个页面做测试。 我将datagrid改为以下代码内容测试,依然有问题
- <UserControl x:Class="DataGridSamples.CustomColumns"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml"
- xmlns:local="clr-namespace:DataGridSamples"
- xmlns:helpers="clr-namespace:Helpers"
- xmlns:System="clr-namespace:System;assembly=mscorlib"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- mc:Ignorable="d"
- d:DesignHeight="300" d:DesignWidth="300">
- <Grid>
- <!-- Control instance -->
- <c1:C1DataGrid x:Name="grid" AutoGenerateColumns="False"
- CanUserAddRows="False"
- CanUserResizeRows="True"
- RowHeight="35"
- KeyDown="grid_KeyDown"
- Grid.Row="1">
- </c1:C1DataGrid>
- </Grid>
- </UserControl>
复制代码 |