Ho un DataGridview che legge i dati da database.
Per prova, formatto una colonna di interi, in questo modo:
e.Value = String.Format("{0:#;(#);#}", e.Value)
i numeri negativi sono tra parentesi invece che preceduti dal segno -
Quando mi sposto col cursore tra questi numeri, va in errore, precisamente questa istruzione:
ossia, l'istruzione Integer.TryParse(s, n)codice:Dim n As Integer Dim s As String = e.FormattedValue.ToString If Not String.IsNullOrWhiteSpace(s) AndAlso Not Integer.TryParse(s, n) Then![]()
un piccolo aiuto?
![]()

Rispondi quotando