All pastes #345664 Raw Edit

Mine

public text v1 · immutable
·published 2007-02-08 18:46 UTC
rendered paste body
int botROW = 0        
protected void gvGrid_DataBound(object sender, EventArgs e)
        {
             botrow = gvGrid.Rows.Count - 1;
        }


        protected void gvGrid_RowDataBound(object sender, GridViewRowEventArgs e)
        {

            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                if (e.Row.RowIndex == botROW)
                {
                    LinkButton linkbtnUP = (LinkButton)e.Row.FindControl("btnUP");
                    if (linkbtnUP != null)
                    {
                        linkbtnUP.Visible = false;
                    }
                }
            }
         }