ComponentOne GridView for ASP.NET WebForms
Task-Based Help / Updating the Grid with AJAX / Selecting a Record
In This Topic
    Selecting a Record
    In This Topic

    You can use AJAX to update the grid when the user selects a record at run time. To enable AJAX when selecting a record, complete the following steps:

    1. Select the C1GridView control and click the Smart Tag to open the C1GridView Tasks menu.
    2. Select Property builder. The C1GridView Properties dialog box (the Property builder) appears.
    3. Click the Columns tab and expand the Command Field node in the list of Available columns.
    4. Click Select and then click the arrow button to add a Select button column to the list of Selected columns.
    5. Click the Format tab and choose Selected Rows under Rows in the list of Objects.
    6. Click the BackColor ellipsis button and choose a color. This will highlight the selected record in the grid.
    7. Click OK to close the Property builder.
    8. With the C1GridView control still selected, expand the CallbackSettings node, click the drop-down arrow next to the CallbackSettings.Action property in the Properties window, and check the Selection check box.

    What You've Accomplished
    Run the program and notice that only the grid refreshes when you select a record in the grid.

    See Also