Show database values in Table or Data Grid View

Getting Started with the Grid Control

Show database values in the data grid view using C# window form


Open visual studio & create a project.
Give the title of the project and click OK button.

Make data base, under data base create a table.
Make id as auto increment & save the table.

In visual studio, add window form.
Give the title of the window form and click Add button.
Display toolbox, drag and drop data grid view from the toolbox.

Few steps required for data base connectivity, you can customise your values, you want to display in the data grid view.
Select values you want to display in the data grid view.

Summary

First create project in visual studio and make database in sql server. Enter some record in the table to display in the Data Grid View. Add window form. Drag & drop data grid view form the toolbox, make sql connection, few steps required for database connectivity, & finally display data in the data grid-view C# window form.


Comments