Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Controls / March 2007

Tip: Looking for answers? Try searching our database.

Inheriting from GridView

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Greg - 14 Mar 2007 19:26 GMT
I'm building a custom web control that inherits from asp.net GridView
control. I'm expecting that when the control is inserted into a page its
design time behavior is the same as GridView but it is not. Here  is what I
mean:

<Custom:CustomGridView ID="gv" runat="server">
           <Columns>
               
           </Columns>
</Custom:CustomGridView>

When I try to insert another tag between the custom grid view the designer
correctly shows the list of available options like AlternatinRowStyle,
Columns, etc. So I insert Columns tag. But when I try to insert a tag between
Columns tag the designer doesn't give any choices. Has anyone run into
similar issue with the GridView or other controls? Do I need to tinker with
any Attributes?

I appreciate any help
bugmenot - 28 Mar 2007 04:27 GMT
Greg;7385764 Wrote:
> When I try to insert another tag between the custom grid view the
> designer
[quoted text clipped - 5 lines]
> with
> any Attributes?

I'm having the same problem. Any ideas anyone?

Signature

bugmenot

maydaytxjunk@gmail.com - 28 Mar 2007 05:02 GMT
> I'm building a custom web control that inherits from asp.net GridView
> control. I'm expecting that when the control is inserted into a page its
[quoted text clipped - 15 lines]
>
> I appreciate any help

I am having the same problem. The design-time support only works for
nested items that are direct children of the inherited GridView; such
as <AlternatingRowStyle, Columns, EditRowStyle, etc. However, it works
fine when compiled and run. Any help on this would be great!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.