Hi
Srinivas,
Please do the following:
I have added
DataKeyNames=Total to the gridview
<asp:GridView DataKeyNames="Total" ID="gvName" runat="server"
onrowdatabound="gvName_RowDataBound1">
</asp:GridView>
protected void gvName_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
int total = Convert.ToInt32(gvName.DataKeys[0].Value);
if (total == 0)
{
e.Row.Cells[3].Text = "Closed";
}
}
}
Thanks,
Imdadhusen