<asp:BoundField Visible="false" DataField="油耗" HeaderText="油耗(%)">
<HeaderStyle Height="25px" />
<ItemStyle Width="15%" HorizontalAlign="Center" BorderStyle="Ridge"></ItemStyle>
</asp:BoundField>
<HeaderStyle Height="25px" />
<ItemStyle Width="15%" HorizontalAlign="Center" BorderStyle="Ridge"></ItemStyle>
</asp:BoundField>
请问如何在 .cs文件里 把她变成true 他没有id 如何获取呢?
if (e.Row.RowType == DataControlRowType.DataRow || e.Row.RowType == DataControlRowType.Header)
{
e.Row.Cells[第列].Visible = true;
}