F
Fabiano
Please,
i need to hide a Item(Collumn) of a DataList that is inside of another
DataList based on some data that i my database returns. For a sample i
created the code above, but it doesn't work. I tryed the visible property,
everything.
Tks in adv.
Fabiano
DataList dtlAuxiliar = new DataList();
for (int i=0; i < dtlVisaoMOL.Items.Count; i++)
{
dtlAuxiliar = ((DataList)
dtlVisaoMOL.Items.FindControl("dtlTerminal"));
int Total = dtlAuxiliar.Items.Count;
for (int x=0; x < Total; x++)
{
dtlAuxiliar.Items[x].Attributes.Add("style", "DISPLAY: none;");
Total--;
}
}
i need to hide a Item(Collumn) of a DataList that is inside of another
DataList based on some data that i my database returns. For a sample i
created the code above, but it doesn't work. I tryed the visible property,
everything.
Tks in adv.
Fabiano
DataList dtlAuxiliar = new DataList();
for (int i=0; i < dtlVisaoMOL.Items.Count; i++)
{
dtlAuxiliar = ((DataList)
dtlVisaoMOL.Items.FindControl("dtlTerminal"));
int Total = dtlAuxiliar.Items.Count;
for (int x=0; x < Total; x++)
{
dtlAuxiliar.Items[x].Attributes.Add("style", "DISPLAY: none;");
Total--;
}
}