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

    You can use AJAX to update the grid when the user edits a record at run time. For more information about editing records, see the Editing Rows topic.

    To enable AJAX when editing 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 Column node in the list of Available columns.
    4. Click Edit, Update, Cancel and then click the arrow button to add the Edit, Update, Cancel button column to the list of Selected columns.
    5. Click OK to close the Property builder.
    6. With the C1GridView control still selected, expand the CallbackSettings node, click the drop-down arrow next to the Action property in the Properties window, and check the Editing check box.

    What You've Accomplished
    Run the program and notice that only the grid refreshes when you click the Edit button. The entire page does not have to reload.

    See Also