How to prevent duplicated markup generated?


Author
Message
Chan
Chan
Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)
Group: Forum Members
Posts: 533, Visits: 2K
Hi,

I have subclassed GridView as my development BaseGirdView. I would like to set certain properties so that all derived GridView has same layout and behavior. I put my code under a method which will be called from BaseGirdView constructor.



I faced problem that:



1. Developer unable to "override" certain settings (property setting) since it is "default" in base class.

2. I have code to auto add column and template to GridView header. When I change any value using propertysheet, VS auto generate markup tag for me and cause multiple column/template markup tag added to aspx. Even though I have code to add column/template only if they are not exist, but it doesn't work.



How to solve this problem?



Thank you
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Chan - 16 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search