Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/31.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Dev Express网格列标题-它们可以减少吗?_C#_Asp.net_Devexpress - Fatal编程技术网

C# Dev Express网格列标题-它们可以减少吗?

C# Dev Express网格列标题-它们可以减少吗?,c#,asp.net,devexpress,C#,Asp.net,Devexpress,我有一个devexpress网格,我将大小从100%更改为42%,因为我的数据非常短。 一个问题是列标题,它本质上决定了数据列的大小。是否有办法减少仅1列的字体大小,以便Y/N类型的数据不会太大 dx:ASPxGridView ID="gvD_CW" ClientInstanceName="gvD_CW" runat="server" AutoGenerateColumns="False" DataSourceID="LDSD_CW" KeyFieldName="ID" OnHt

我有一个devexpress网格,我将大小从100%更改为42%,因为我的数据非常短。 一个问题是列标题,它本质上决定了数据列的大小。是否有办法减少仅1列的字体大小,以便Y/N类型的数据不会太大

dx:ASPxGridView ID="gvD_CW" ClientInstanceName="gvD_CW" runat="server" AutoGenerateColumns="False" DataSourceID="LDSD_CW"
        KeyFieldName="ID" OnHtmlRowCreated="gvD_CW_HtmlRowCreated" Width="42%" SettingsBehavior-AllowGroup="true"
        SettingsPager-PageSize="20" OnCustomCallback="gvD_CW_CustomCallback">
        <Settings ShowFilterRow="false" ShowFilterRowMenu="true" ShowGroupPanel="True" ShowFooter="True" />
        <SettingsBehavior AllowSort="false" />
        <SettingsPager>
            <PageSizeItemSettings Visible="true" Items="10, 20, 50" />
        </SettingsPager>
        <Columns>
dx:ASPxGridView ID=“gvD\u CW”ClientInstanceName=“gvD\u CW”runat=“server”AutoGenerateColumns=“False”DataSourceID=“LDSD\u CW”
KeyFieldName=“ID”OnHtmlRowCreated=“gvD\u CW\u HtmlRowCreated”Width=“42%”设置behavior AllowGroup=“true”
设置参数PageSize=“20”OnCustomCallback=“gvD\U CW\U CustomCallback”>
您试过这个吗

<Columns>
    <dxg:GridViewDataColumn FieldName="YesNo" Width="100" VisibleIndex="3" >
        <HeaderStyle Wrap="True"/>
    </dxg:GridViewDataColumn>
</Columns>

您尚未发布完整的代码。。
ColumnMinWidth - specifies the minimum width of grid columns.
MinWidth - specifies the minimum width of the current column.