may be you are not getting my point. see
first bind your gridview
if you are using datatable
then check the condition if (dt.rows.count>0) or (<0)
if it is > 0 then simply bind gridview. but in case if it is < 0. then in else statement try the below code
dt.Rows.Add(dt.NewRow());
grid1.DataSource = dt;
grid1.DataBind();
int totalcolums = grid1.Rows[0].Cells.Count;
grid1.Rows[0].Cells.Clear();
grid1.Rows[0].Cells.Add(new TableCell());
grid1.Rows[0].Cells[0].ColumnSpan = totalcolums;
grid1.Rows[0].Cells[0].Text = "No Data Found";
if any error occured then let us know. Thanks