Im having a problem with my listview. When i write a decimal number on a textbox (19.22 for example) and i add it to the database, that is also set as decimal, my listview shows that number with a comma. This causes a bug that happens when i use a listview_click event to fulfill the textbox with the database data, and the textbox value returns with a comma (19,22) instead of the initial dot.
limpacampos()
txtid.Text = ListView1.SelectedItems(0).Text
mskdata.Text = ListView1.SelectedItems(0).SubItems(1).Text
tipo = ListView1.SelectedItems(0).SubItems(2).Text
txtnome.Text = ListView1.SelectedItems(0).SubItems(3).Text
Dim rd As MySqlDataReader
Dim query As New MySqlCommand
connection.Open()
query = connection.CreateCommand
query.CommandText = "select * from tipodedespesa where DES_DES like '%" & tipo & "%';"
rd = query.ExecuteReader()
If rd.Read = True Then
combotipo.Text = tipo
Else
descricaooutro.Text = tipo
End If
connection.Close()
when i use this code the listview items don't fulfill the textbox with a dot, as it is on the database. instead of filling the textbox with 19.22 as i added, it fills with 19,22