Posted on: 12/19/2013 9:29:50 PM | Views : 874

I have an imagebutton in RowDataBound that I would like to make visible and invisible based on the data in the row.
How do I turn a control off and on based in the data content in the gridview.
 protected void gvItemColor_RowDataBound(object sender, GridViewRowEventArgs e)         {             if (e.Row.RowState != DataControlRowState.Edit)             {                 if (e.Row.RowType == DataControlRowType.DataRow) //check for RowType                 {
                     Label lblROW_KEY = e.Row.FindControl("lblR ...

Go to the complete details ...