To programatically remove the top level from the time scale, complete the following:
Visual Basic Copy Code Private Sub btnRemoveTopLevel_Click(sender As Object, e As EventArgs) gv.Timescale.TopTier.Visible = False btnAddTopLevel.Enabled = True btnRemoveTopLevel.Enabled = False End Sub
C# Copy Code private void btnRemoveTopLevel_Click(object sender, EventArgs e) { gv.Timescale.TopTier.Visible = false; btnAddTopLevel.Enabled = true; btnRemoveTopLevel.Enabled = false; }
For more information on this task, see the sample HowToDoItInCode.