首页 > 代码库 > 添加模板列

添加模板列

<DataGridTemplateColumn Width="0.3*">
                                    <DataGridTemplateColumn.Header>
                                        <CheckBox  x:Name="CbTeacherDevice" Content="序号">
                                        </CheckBox>
                                    </DataGridTemplateColumn.Header>
                                    <DataGridTemplateColumn.CellTemplate>
                                        <DataTemplate>
                                            <CheckBox Margin="12,0,0,0"></CheckBox>
                                        </DataTemplate>
                                    </DataGridTemplateColumn.CellTemplate>
                                </DataGridTemplateColumn>

添加模板列