I have a complex problem:
I have in my Grid a GridTemplatecolumn which displays the text " rapport " but this text must be visible only for some lines
The condition to enable or disable the visibility is within the second if
Right now , my problem is with this line :
The column disappears everytime...
I hope i'm clear enough
Thanks in advance for your help
I have in my Grid a GridTemplatecolumn which displays the text " rapport " but this text must be visible only for some lines
The condition to enable or disable the visibility is within the second if
protected void GridDisplayOldRDV_ItemDataBound(object sender, GridItemEventArgs e)
{
HiddenField HiddenFieldIdParticipant = e.Item.FindControl("HiddenFieldIdParticipant") as HiddenField;
Utilisateur utilisateur = (Utilisateur)Session["utilisateur"];
if (HiddenFieldIdParticipant != null)
{
if (utilisateur.idUtilisateur.ToString() != HiddenFieldIdParticipant.Value.ToString())
{
GridDisplayOldRDV.MasterTableView.GetColumn("Debriefing").Visible = false;
}
}
}
Right now , my problem is with this line :
GridDisplayOldRDV.MasterTableView.GetColumn("Debriefing").Visible = false;
The column disappears everytime...
I hope i'm clear enough
Thanks in advance for your help