Home > Net >  Vb.net the custom form
Vb.net the custom form

Time:09-25

In vb.net, how to build a custom table used to store data, then these data to participate in computing

CodePudding user response:

 
Dim aa=New DataTable

CodePudding user response:

Using a two-dimensional array is ok,

CodePudding user response:

I set the table content
My table with three columns and rows is determined based on certain parameters

CodePudding user response:

My form and displayed in the window

CodePudding user response:

 
Dim dt As New DataTable
Dt. Columns. The Add (" the column 1, "GetType (String))
Dt. Columns. The Add (" column 2 ", GetType (Integer))
Dt. Columns. The Add (" column 3, "GetType (Boolean))
Dim row As DataRow=dt. NewRow
Row (column "1")="XXX"
Row (" column 2 ")=100
Row (column name "3")=False
Dt. Rows. The Add (row)
Dim DGV As New DataGridView
Me. Controls. The Add (DGV)
DGV. The DataSource=dt

CodePudding user response:

Object-oriented, the establishment of a class, three properties, direct the list of (class), this store is very convenient, also convenient calculation,

CodePudding user response:

And with DGV directly binding list can display, quite comfortable
  • Related