I'm trying to format an autogenerated column in a gridview and I'm not sure why my current code isn't working. My results display without error, but without any formatting.
Please help!
Here's the code:
Please help!
Here's the code:
Code:
GridViewInceptionToDateExpenseReport_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridViewInceptionToDateExpenseReport.RowDataBound
Dim i As Integer
For i = 0 To 7
e.Row.Cells(i).Text = Format("{0:c}", e.Row.Cells(i).Text)
Next i
End Sub