According to me, the DataGridView is used to show off information from a database. A table can be shown from a database in a DataGridView, utilizing the DataAdapter class and information rationale. You can undoubtedly upgrade a database from a DataGridView.
If you are looking for adding a new line into the cell of a DataGridView, then the below given code may be beneficial;
Dim DS As New DataSet("aa")
Dim tbl As DataTable = DS.Tables.Add("bb")
Dim xRow2 As DataRow = tbl.NewRow()
xRow2("Equipment") = "-Lawnmower" & vbCrLf & "-Logcutter"
grdRented.DataSource = DS.Tables("bb")
I hope my reply helps you…thanks!Ammardev, if this helps please login to Mark As Answer. | Alert Moderator