VWD2005 Checking Value in Details VIew



Hi All,
How do I check a fields value in Details view. This does not work.


If Me.DetailsView1.Fields.Item(6) = True Then
'do something
End If

It complains with the following error.

Error 1 Operator '=' is not defined for types
'System.Web.UI.WebControls.DataControlField' and
'Boolean'. H:\Programming\Web\MSF_OP_Compliance_New\OP_Comp_Detail.aspx.vb 8 12 H:\...\MSF_OP_Compliance_New\

Thanks

.