ComponentOne True DBGrid for WinForms
Data Binding / Binding True DBGrid for WinForms to a Data Source
In This Topic
    Binding True DBGrid for WinForms to a Data Source
    In This Topic

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

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

    To associate a True DBGrid for WinForms control with an ADO.NET or DataObjects for WinForms 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 for WinForms fully aware of the database or DataTable in your application.

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

    See Also