- In the Solution Explorer, double-click DataGridview.cs Visual Studio opens the form in the form designer.
- Select the DataGridview1.
In the Properties window, select the Choose DataSource property, expand the drop-down list, and then select add new project
click the button next and add connection and then click next and choose table marks and then click finish
Now go to edit colomns and change Header Text name as required
now the form is
now run the program
Previous Home Next