ComponentOne WebData for ASP.NET:WebDataObjects for ASP.NET Task-Based Help > Using C1WebDataSet with a Data Library

Using C1WebDataSet with a Data Library

To assign a data library to a C1WebDataSet component which is bound to a grid, complete the following steps.

1.   Create and compile a new Data Library project containing at least one data set definition.

2.   Create a new ASP.NET project.

3.   Add a reference to the new Data Library:

a.   In the Website menu, select Add Reference.

b.   Browse to the bin folder of the new Data Library project.

c.    Select the new library's .dll and click OK. This adds a reference to the DataLibrary.dll to your project.

4.   Double-click C1WebDataSet from the Toolbox to add a C1WebDataSet component to the form.

      Set the DataLibrary property of the C1WebDataSet to the new Data Library.

      Select a data set definition from the dropdown box next to the DataSetDef property.

 

 

5.   Add a GridView component to the form.

      Set the DataSourceID property to C1WebDataSet.

      Set the DataMember property to the desired table.


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