Saturday, September 27, 2008

How to use DataTable and DataView

DataView cannot exist without a DataTable (or a Linq query).

Here is how to create a DataTable programmatically:
1. Define table schema by adding columns;

2. Adding row. To add rows to a DataTable, you must first use the NewRow method to return a new DataRow object. The NewRow method returns a row with the schema of the DataTable

No comments: