private void DisplayData() { GridView1.DataSource = GetData(); GridView1.DataBind(); if (!(GridView1.Rows.Count > 0)) { StrHelper.GridViewHeader(GridView1); } } // end method DisplayData