开发者

set visible = false to a asp:BoundField

开发者 https://www.devze.com 2022-12-13 04:25 出处:网络
i have a gridview width a boundfield: <asp:BoundField DataFiel开发者_StackOverflow社区d=\"Nome\" HeaderText=\"Nome\" SortExpression=\"Nome\"/>

i have a gridview width a boundfield:

<asp:BoundField DataFiel开发者_StackOverflow社区d="Nome" HeaderText="Nome" SortExpression="Nome"  />

i want set the visible parameter of this by a condition in page_load method.

is possible?

thanks


After calling EnsureChildControls(), you will be able to iterate over the GridViewRows and use FindControl to pick out this field (assuming you set an ID and runat="server").

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号