enquires@blushmedia.co.uk
 

RowDataBound

Menu

Grid view event

OnRowDataBound"gridViewId_RowDataBound"

How to handle Event in CS file

        protected void gridViewId_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                bool messageRead = Convert.ToBoolean(DataBinder.Eval(e.Row.DataItem, "Opened"));
                if (messageRead == false)
                {
                    e.Row.CssClass = "Bold";
                }
            }
        }