回复 2楼Alice的帖子
代码如下,第一列还是不能实现自适应,不知是为何?可以通过后台代码实现自适应吗?
<c1:C1DataGrid Name="grid" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,0,0,0"
CanUserFilter="False"
MouseOverBrush="Gray"
AlternatingRowBackground="White"
GridLinesVisibility="All"
LoadingRow="grid_LoadingRow"
LoadedRowHeaderPresenter="grid_LoadedRowHeaderPresenter"
LoadedRowPresenter="grid_LoadedRowPresenter"
LoadedCellPresenter="grid_LoadedCellPresenter"
AutoGeneratingColumn="grid_AutoGeneratingColumn">
<c1:C1DataGrid.Columns>
<c1:DataGridTextColumn Header="testheader" Width="auto"/>
</c1:C1DataGrid.Columns>
</c1:C1DataGrid>
|