Hi Frndz,
Functionality: bold Gridview Row based on Condition
To achieve this task,
Added one hidden filed to Item Template for store read/Unread value
<ItemTemplate>
<asp:HiddenField ID="MilestoneID" runat="server" Value="'<%#Eval("FlagReadUnread") %>" />
</ItemTemplate>
Now get this hidden filed value in rowdataound event and check this hidded field value
Added RowDatabound event and set row font bold as following way
Full Logic :
protected void GrvMfDetails_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
HiddenField hdf = (HiddenField)e.Row.FindControl("MilestoneID");
if (hdf.Value == "read")
{
e.Row.Font.Bold = true;
}
}
}
Hope this helpful!
Thanks