Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have defined this datagridviewcombobox:
Dim lCol2 As New DataGridViewComboBoxColumn
lCol2.DataPropertyName = "Descrizione"
lCol2.DisplayMember = "Descrizione"
lCol2.ValueMember = "IDTessera"
lCol2.DisplayIndex = 2
dgwNote.Columns.Add(lCol2)


then I filled the combo this way:
sql = "SELECT Descrizione,IDTessera FROM T01_TipiDoc ORDER BY Descrizione"
DA = New OleDbDataAdapter(sql, Connect.Conn)
DA.Fill(DT)

Dim dv As New DataView(DT)


and this works normally

What I have tried:

I would like add an extra row at the end of the list, so, after DA.Fill(DT), I added this:

DT.Rows.Add("NEW", DT.Rows.Count + 1)


but this is wrong

anyone think is possible to have a work around this?
thank
Posted
Updated 4-Sep-19 16:01pm

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900