Make sure the WebDataSource1.KeyFieldNames property
is set to the name of the primary key, which is PartNo. If you need to change this property be sure to exit your application and recompile/run the application after you make the change.
|
The rest of the instructions on this page are optional. You can skip them if you do not want to see how to change the grid's sort order on the fly.
| On your running EXE, select Components|WebDataSource1|Edit Index Orders. |
| Enter the following information. The first one will be the default. If there are not enough lines to enter the three lines of information, right click in the open space and select "Add Row." The * symbol indicates 'use the primary key.' [? IndexOrders Property] |
| Key | Value |
|---|---|
| By Description | ByDescription |
| By Vendor | VendorNo |
| By Part Number | * |
| Click [ok] to save the definition. |
| In the web browser, redraw the grid. A new control will appear with a menu for the index order. You can pick from the list and click Redraw. |
Copyright © 1995-1998 HREF Tools Corp. All Rights Reserved.