Dim dataTable As DataTable = DT ' Replace with your DataTable variable name
For Each column As DataColumn In dataTable.Columns
For Each row As DataRow In dataTable.Rows
Dim cellValue As String = row(column).ToString()
If cellValue.EndsWith("-") Then
' Reformat the cell value with the minus symbol before the number
row(column) = "-" & cellValue.TrimEnd("-"c)
End If
Next
Next