My code is as below I am trying to get custom grouping on number example: 1000000 should be 1000,000
I have tried many search result that allows thousand separator and also custom grouping but each one gives a result like 10,00,000
decimal value = decimal.Parse(txtamount.Text.Trim());
txtamount.Text = value.ToString("#,###0");
In this code I have tried below code also
txtamount.Text = String.Format("{0:n0}", value);
txtamount.Text = value.ToString("#,##0", new System.Globalization.CultureInfo("en-US"));
txtamount.Text = value.ToString("0,0.0",CultureInfo.InvariantCulture); //-->1,000,000.0
It is not a normal thousand separator grouping of a number. I am trying to get output in a format 1000,000