在GRIDVIEW的DataBound事件中判断:
具体实现请看代码。
protected void GridView1_OnDataBound(object sender, GridViewRowEventArgs e)
{
if(String.IsNullOrEmpty(((Label)e.Row.FindControl("Label1")).Text))
e.Row.FindControl("Label1").Visible = false;
else
e.Row.FindControl("LinkButton").Visible = false;
}
http://blog.csdn.net/21aspnet/archive/2007/03/25/1540301.aspx
去上面找找 应该能找到