But I get an error and a warning:
Error 1 The name 'grdPropertyValues' does not exist in the current context C:\Users\sogunroI\Documents\Visual Studio 2008\Projects\HotLineWP\HotLineWP\hotline\HotLineIncoming.ascx.cs 32 40 HotLineWP
Warning 2 Type of 'HotLineDocs.HotLineIncoming.SPGridView1' is not CLS-compliant C:\Users\sogunroI\Documents\Visual Studio 2008\Projects\HotLineWP\HotLineWP\hotline\HotLineIncoming.ascx.designer.cs 23 71 HotLineWP
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
The code you gave, "SPGridView grdPropertyValues;" fixed the error but now I get a warning.
I should have given more details.
The code you see above is a user control that will be in a web part.
I get the following warning now:
Warning 3 Field 'HotLineDocs.HotLineIncoming.grdPropertyValues' is never assigned to, and will always have its default value null C:\Users\sogunroI\Documents\Visual Studio 2008\Projects\HotLineWP\HotLineWP\hotline\HotLineIncoming.ascx.cs 24 20 HotLineWP
The webpart code is below.
I tried to add the following in my "CreateChildControls()" but it does not recognize grdPropertyValues
grdPropertyValues = new SPGridView();
Controls.Add(grdPropertyValues);
Any ideas?
Also, if this could have been done better, please enlighten me. This is my first attempt at this.
Thanks for any help you can provide.
The code you gave, "SPGridView grdPropertyValues;" fixed the error but now I get a warning.
I should have given more details.
The code you see above is a user control that will be in a web part.
I get the following warning now:
Warning 3 Field 'HotLineDocs.HotLineIncomi
The webpart code is below.
I tried to add the following in my "CreateChildControls()" but it does not recognize grdPropertyValues
grdPropertyValues = new SPGridView();
Controls.Add(grdPropertyVa
Any ideas?
Also, if this could have been done better, please enlighten me. This is my first attempt at this.
Thanks for any help you can provide.
Open in new window