Thank you for your reply.
Yes, it exists. Here is a portion of my function:
Code:
gv = CType(fvProgID.FindControl("gvPermitEvents"), GridView)
[COLOR=yellow red]If gv.Rows.Count > 0 Then[/color]
rw = gv.FooterRow
strEventDate = CType(rw.FindControl("txtPermitEventDate"), TextBox).Text
If strEventDate <> "" Then
EventID = CType(rw.FindControl("ddlPermitEvent"), DropDownList).SelectedValue
strPermitStatusCode = noi.getPermitStatus(EventID)
End If
Else
strEventDate = CType(gv.FindControl("txtPermitEventDate"), TextBox).Text
If strEventDate <> "" Then
EventID = CType(gv.FindControl("ddlPermitEvent"), DropDownList).SelectedValue
strPermitStatusCode = noi.getPermitStatus(EventID)
End If
I am watching the Gridview object gv. I have a breakpoint on the first If statement (highlighted in red).
My Watch Window looks like this:
-gv {System.Web.UI.WebControls.GridView} System.Web.UI.WebControls.GridView
AccessKey Property evaluation failed. String
AllowPaging Property evaluation failed. Boolean
AllowSorting Property evaluation failed. Boolean
AlternatingRowStyle Property evaluation failed. System.Web.UI.WebControls.TableItemStyle
AppRelativeTemplateSourceDirectory Property evaluation failed. String
Attributes Property evaluation failed. System.Web.UI.AttributeCollection
AutoGenerateColumns Property evaluation failed. Boolean
AutoGenerateDeleteButton Property evaluation failed. Boolean
AutoGenerateEditButton Property evaluation failed. Boolean
AutoGenerateSelectButton Property evaluation failed. Boolean...
As you can see, the Watch finds the object and returns the object type, but all of the properties of the object are not returned.