change programmatically color of a detailsview
Hi,
I would know how to change programmatically the forecolor of a particular field in detailsview.
The detailsview is created in aspx file.
In the code-behind, i tried this:
Protected Sub DetailsView1_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles DetailsView1.DataBound
Dim a As DataControlField
a = DetailsView1.Fields(2) //this gives the name of the third field
???
End Sub
Should i use another event? Should i use another object for variable a?
Thanks for help
|