ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

Binding True DBGrid to a Data Source

With an amazing ease of use, C1TrueDBGrid for .NET can universally bind to any .NET data source. Requiring little or no code at all, the C1TrueDBGrid can create a fully-navigational database browser in mere seconds.

C1TrueDBGrid for .NET fully supports data binding to ADO.NET objects such as DataTable, DataView and DataSet. You also have an even easier option of binding to ComponentOne DataObjects Express data sources, C1ExpressTable and C1ExpressConnection. C1TrueDBGrid also fully supports the powerful ComponentOne DataObjects Enterprise framework included in ComponentOne Studio Enterprise.

To associate a True DBGrid control (C1TrueDBGrid) with an ADO.NET or C1DataObjects data source, set the DataSource property of the grid to a DataSet on the same form. If the DataSet contains multiple tables, you can select a table name in the DataMember property combo box. The DataSource and DataMember properties can be set both through code, and through Visual Studio’s Properties window. This is all that is required to make True DBGrid fully aware of the database or DataTable in your application.

Once such a link exists, True DBGrid and the DataSet automatically notify and respond to operations performed by the other, simplifying your application development.


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