Does anyone know how to format an integer to include comma formatting? I.e. 123456 to 123,456.
I am populating a gridview from a code behind page in
VB and using the code below to do some formatting, but cannot seem to figure out how to put in the commas in my numeric values.
Thanks!
'.... Formatting the rows. .................................................. ...............
If e.Row.RowType = DataControlRowType.DataRow And e.Row.Cells(1).Text <> "Totals"Then
x = 1
DoUntil x > 13
e.Row.Cells(x).HorizontalAlign = HorizontalAlign.Right
e.Row.Cells(x).Wrap = "False"
e.Row.Cells(x).Font.Name = "verdana"
e.Row.Cells(x).Font.Size = FontUnit.Point(10)
e.Row.Cells(x).BackColor = Drawing.Color.AliceBlue
x = x + 1
Loop
EndIf