C# 如何在VisualStudio中自定义dataGridView单元格

C# 如何在VisualStudio中自定义dataGridView单元格,c#,datagridview,datagridviewtextboxcell,C#,Datagridview,Datagridviewtextboxcell,我想自定义dataGridView单元格的大小,如何实现?我想增加单元格的高度这是我正在使用的一个示例: .Grid td { //these are data cells background-color: #d7e1e5; color: black; font-size: 10pt; line-height: 200% // Adjust the height here } .Grid th { //H

我想自定义dataGridView单元格的大小,如何实现?我想增加单元格的高度

这是我正在使用的一个示例:

    .Grid td { //these are data cells
        background-color: #d7e1e5;
        color: black;
        font-size: 10pt;
        line-height: 200% // Adjust the height here
    }

    .Grid th { //Header cells
        background-color: #007FFF;
        color: White;
        font-size: 10pt;
        line-height: 200% // Adjust the height here
    }

您有问题吗?这如何应用于DataGridView列(WinForms)?