My Requirement is i have two columns both are of string datatype
1.Amount and 2.Final Amount in my datatable and there are currency values and i need to seperate them by comma
eg: 1000 should be 1,000
1000.99 should 1,000.99
I am using this expression string.Format(System.Globalization.CultureInfo.GetCultureInfo(“en-IN”),“{0:n}”,Convert.ToDouble(amount))
but it give 1,000.00 for 1000
Note : it shouldn’t throw error for non numeric values
Any suggestions