if (e.Row.RowType == DataControlRowType.DataRow) {
if (Condizione1) {
e.Row.Cells(8).Controls(0).Visible = true;
e.Row.Cells(8).Controls(1).Visible = true;
e.Row.Cells(8).Controls(2).Visible = true;
}
else if (Condizione2) {
e.Row.Cells(8).Controls(0).Visible = false;
e.Row.Cells(8).Controls(1).Visible = true;
e.Row.Cells(8).Controls(2).Visible = false;
}
else {
e.Row.Cells(8).Controls(0).Visible = false;
e.Row.Cells(8).Controls(1).Visible = false;
e.Row.Cells(8).Controls(2).Visible = false;
}
}