It works If dont use hard coded query
SO I have done it with this event also
protected void GridView1_RowDataBound1(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
DataRowView rowView = (DataRowView)e.Row.DataItem;
if (((DataRowView)e.Row.DataItem)["a10"] ==null)
{
GridView1.Columns[1].Visible = false;
}
if (e.Row.Cells[1].Text == " ")
{
e.Row.Cells[1].Visible = false;
}