How To hide Coloums If it is Empty or Null
HiI have create a application in this application a give a Grid view.
at the time of binding the grid view some rows are empty, then
How to Hide this Row ?
protected void GV_RowDataBound(object sender,GridViewRowEventArgs e)
{
if(e.Row.RowType==DataControlRowType.DataRow)
{
string val=((Label) e.Row.FindControl("lblVal")).Text;
if(val=="")
{
((Label) e.Row.FindControl("lblVal")).Visible= false;
}
}
}