Have gridview that I have populate from a database, and now I would like right align all the numeric items in the gridview, but If IsNumeric(row.Cells(i).Text)
statment takes extremely long time is there any other way to fix this?
Code:
Takes long time any other way align number to the right
For Each row As GridViewRow In Me.gwResult.Rows
For i As Integer = 0 To headCell - 1
If IsNumeric(row.Cells(i).Text) Then
row.Cells(i).HorizontalAlign = HorizontalAlign.Right
End If
Next
Next