Hide a gridView row in asp.net

后端 未结 13 779
说谎
说谎 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:02

    If you do not want to display data when the column/row is null:

    if (!String.IsNullOrEmpty(item.DataName))
    {
        e.Row.Visible = false;
    }
    

提交回复
热议问题