I have a datagroup view that I want to populate to use for the loop:
String = SQLServerName + "\" + Example Server Server Dim Server = New Server (ServerName) Dim Datatable1 Server as New DataTable as Database for Each Database DataRow = Datatable1.NewRow line ("database") = database in the form of a slow line in the database. No line ("version") = Debianversion probe (server name, database name) line ("status") = MyResources.My_Exchange DataTable1 light. Add (line) Next Data Grid View 1. Datasource = DataTable 1
Designed with DGV Designer (Columns, Layouts, etc.) Using the above DGV is not populated. I was using a ListView for it, but I need images in a subtitle, so switched to using DGV. Any advice?
You have to add the column to DataTable
.
I have some code (which is C #) but you should be able to change it:
var columnSpec = New DataColumn {DataType = string, ColumnName = "Database name"}; This.dataTable.Columns.Add (columnSpec);
which will add a column of type string
with the name "code name".
Comments
Post a Comment