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 ...