ComponentOne GridView for ASP.NET AJAX: GridView for ASP.NET AJAX Task-Based Help > Updating the Grid with AJAX > Selecting a Record

Selecting a Record

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 Column 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 Items in the list of Objects.

6.   Click the Back color drop-down arrow 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, click the drop-down arrow next to the CallbackOptions 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.


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.