It depends exactly what you mean by "data table". There is a DataTable class in .NET that is supposed to basically represent an in-memory database table. It's just for storing data though, not displaying it. If you want to display the data in a DataTable to the user then you would generally do so by binding it to a BindingSource and binding that to a DataGridView. You can add those two components in the designer and binding, in this case, just means assigning to the DataSource property. Check this out for some code examples of working with DataTables and other ADO.NET objects:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.