|
the first method:
Add a column to the DataSet, traverse, use the ID to retrieve the Name from the database, assign a value to the Name column of all rows, bind the Name column in the DataGrid, and hide the ID column.
The second method:
Make a view of the database, try two tables, and then retrieve the data (including Name) at a time, and then bind it as above. |
|