Tutorial 11 Quick Reference
|
To |
Do This |
|
Bind a collection to a control |
Set the control's DataSource property to the collection |
|
Choose a column to display in the control |
Set the control's TextTextField property to the column name |
|
Choose a column to use programmatically (that's NOT displayed in the control) |
Set the control's TextValueField property to the column name |
|
Display a DataTable as a grid |
Use the DataGrid or the GridView controls |
|
Display a DataTable as a formatted, repeating list |
Use either the DataList or the Repeater |
|
Make a class' member variables available as DataTextFields and DataValueFields within a control |
Expose the members as properties |