Hide a gridView row in asp.net

后端 未结 13 770
说谎
说谎 2021-01-14 21:22

I am creating a gridView that allows adding new rows by adding the controls necessary for the insert into the FooterTemplate, but when the Ob

13条回答
  •  生来不讨喜
    2021-01-14 22:05

    To make it visible, just use:

    Gridview.Rows.Item(i).Attributes.Add("style", "display:block")
    

    And to make it invisible

    Gridview.Rows.Item(i).Attributes.Add("style", "display:none")
    

提交回复
热议问题