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:
- Select the C1GridView control and click the Smart Tag to open the C1GridView Tasks menu.
- Select Property builder. The C1GridView Properties dialog box (the Property builder) appears.
- Click the Columns tab and expand the Command Field node in the list of Available columns.
- Click Select and then click the arrow button to add a Select button column to the list of Selected columns.
- Click the Format tab and choose Selected Rows under Rows in the list of Objects.
- Click the BackColor ellipsis button and choose a color. This will highlight the selected record in the grid.
- Click OK to close the Property builder.
- 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