1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
' création de ma datagrid
DataGridView1.Rows.Clear()
DataGridView1.ColumnCount = 13
DataGridView1.Columns(0).Name = "COMMENTAIRE"
DataGridView1.Columns(0).Visible = False
DataGridView1.Columns(1).ValueType = GetType(Integer)
DataGridView1.Columns(1).Name = "ITEM#"
DataGridView1.Columns(2).Name = "QTE"
DataGridView1.Columns(3).Name = "DESCRIPTION"
DataGridView1.Columns(4).Name = "PART#"
DataGridView1.Columns(5).Name = "LONG"
DataGridView1.Columns(6).Name = "LARG"
DataGridView1.Columns(7).Name = "POIDS TOTAL"
DataGridView1.Columns(8).Name = "UNIT"
DataGridView1.Columns(9).Name = "UPOIDS"
DataGridView1.Columns(10).Name = "CAT"
DataGridView1.Columns(11).Name = "APOIDS"
DataGridView1.Columns(12).Name = "MPOIDS"
' ajout des textbox dans la datagrid
Dim row As String() = New String() {"", T_ITEM.Text, T_QTE.Text, _ T_DESC.Text, T_PART.Text, T_LONG.Text, T_LARG.Text, T_POIDS.Text, _ T_UN.Text, T_PUNIT.Text, T_CAT.Text, T_PACIER.Text, T_PMEC.Text}_
DataGridView1.Rows.Add(row)
' trie de la datagrid
DataGridView1.Sort(DataGridView1.Columns(1), _ System.ComponentModel.ListSortDirection.Ascending) |
Partager