您好,您可以通过设置自定列来设置某列的format属性,比如我发的如下代码:
- <c1:C1DataGrid x:Name="dg" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Height="300" Width="497">
- <c1:C1DataGrid.Columns>
- <c1:DataGridBoundColumn DefaultAutoWidth="30"/>
- <c1:DataGridTextColumn DefaultAutoWidth="120" Format="n:0"/>
- </c1:C1DataGrid.Columns>
- </c1:C1DataGrid>
复制代码 |