Change the shape of numbers in DataGridView

  • Thread starter Thread starter ahmeddc
  • Start date Start date
A

ahmeddc

Guest
hi


I want to change the way numbers are displayed in one of the datagridview columns from Arabic to English

I know very well in the event that the Windows language changes the data automatically.
But is there a programmatic way inside the application with the stability of the Windows language to do the operation?

from

1620182.png

to

1620183.png

my try


'System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture("en-US")

Dim culture = CultureInfo.CreateSpecificCulture("en-GB")
culture.NumberFormat.NumberGroupSeparator = " "
DATAG_CLIENT.DefaultCellStyle.FormatProvider = culture
DATAG_CLIENT.Columns(5).DefaultCellStyle.Format = "N2"

Continue reading...
 
Back
Top