When I update my gridview I want to replace all the commas with the html entity code before the values are passed to the database. I am using a sql data source. I'm using the following code which is being fired but the commas are not being changed to the html entity codes. Am I right in trying to access the value using DictionaryEntry?
Private Sub gridview_RowUpdating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewUpdateEventArgs) Handles gridview.RowUpdating
For Each x As DictionaryEntry In e.NewValues
x.Value = Replace(x.Value, ",", ",")