You can use of RowDataBound event to iterate with data rows to check your empty value and make that row hide per below.
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if(e.Row.RowType == DataControlRowType.DataRow)
{
string str = e.Row.Cells[0].Text.ToString();
if(String.IsNullOrEmpty(str))
{
e.Row.Visible = false;
}
}
}