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
to
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...
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
to
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...