ComponentOne Wizard for ASP.NET WebForms
Task-Based Help / Adding and Manipulating Step Content / Adding a Caption to a Step
In This Topic
    Adding a Caption to a Step
    In This Topic

    If you want to add a caption to a step, you can set the GroupingText property to a string. Once the GroupingText property is set, a border will also appear around the step's content.

    In Design View

    Complete the following steps:

    1. Click the smart tag to open the C1Wizard Tasks menu. Select C1Wizard.SmartTag.Designer.
      The C1Wizard Designer Form dialog box opens.
    2. In the treeview, select the step you'd like to add the caption to so that its list of properties appear in the properties grid.
    3. In the properties grid, set the GroupingText property to a string. For this example, set it to "GroupingText".
    4. Press F5 to run the program and observe that your content now has the caption "GroupingText".

    In Source View

    Complete the following steps:

    1. Add GroupingText="GroupingText" to the <cc1:C1WizardStep> tag so that the markup resembles the following:
      <cc1:C1WizardStep ID="C1WizardStep1" runat="server" Title="Step1" GroupingText="GroupingText">
      
    2. Press F5 to run the program and observe that your content now has the caption "GroupingText".

    In Code View

    Complete the following steps:

    1. Add the following code to the Page_Load event:

      To write code in Visual Basic

      Visual Basic
      Copy Code
      C1Wizard1.GroupingText = "GroupingText"
      

      To write code in C#

      C#
      Copy Code
      C1Wizard1.GroupingText = "GroupingText";
      
    2. Press F5 to run the program and observe that your content now has the caption "GroupingText".

    Description: CheckThis topic illustrates the following:
    The following image depicts a C1WizardStep with its GroupingTextproperty set:

    Description: D:\Whidbey\T211\Projects - ASP Wijmo\Wijmo_C1Wizard\Word Documents\WizardTBH\GroupingText_Final.png

    See Also