- <c1:C1DataGrid AutoGenerateColumns="False" CanUserAddRows="False" Style="{StaticResource DarkGrayThree}"
- GridLinesVisibility="All" CanUserSort="False" ItemsSource="{Binding CusList}">
- <c1:C1DataGrid.Columns>
- <c1:DataGridTextColumn Header="姓名" Binding="{Binding Name}" Width="6*"/>
- <c1:DataGridTextColumn Header="性别" Binding="{Binding Sex}" Width="3*"/>
- <c1:DataGridTextColumn Header="年龄" Binding="{Binding Age}" Width="3*"/>
- <c1:DataGridTextColumn Header="国籍" Binding="{Binding Nationality}" Width="4*"/>
- </c1:C1DataGrid.Columns>
- </c1:C1DataGrid>
复制代码
上面代码在C1DataGrid 里绑定了一个CusList。如果我想将"国籍"这一列,直接在C1DataGrid里面写死为“中国”,要怎么写? |