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 / General / August 2007

Tip: Looking for answers? Try searching our database.

Want to view code in GridView.Render so I can override it

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jason - 22 Aug 2007 20:50 GMT
Hi all,
I hope this doesn't sound like a lame question, but I want to override
Gridview.Render so I can strip out ALL styling elements and use CSS
for my styling. I am pretty sure I can figure it out, if I could just
get at the code that is currently called by GridView.Render. Can
anyone help me out?

Thanks,
Jason
Ladislav Mrnka - 22 Aug 2007 21:46 GMT
Hi Jason,
the thing you are looking for is Adapter. Adapter framework allows to
override how the web controls are rendered. I recommend you to start from
already created Adapter, because you will very quickly discover all important
features. Good implementation are CssFriendlyAdapter -
http://www.codeplex.com/cssfriendly

Regards,
Ladislav

> Hi all,
> I hope this doesn't sound like a lame question, but I want to override
[quoted text clipped - 5 lines]
> Thanks,
> Jason
Peter Bromberg [C# MVP] - 22 Aug 2007 21:46 GMT
Use Lutz Roeder's Reflector product to decompile the Render method so you can
see what it does.
-- Peter
Recursion: see Recursion
site:  http://www.eggheadcafe.com
unBlog:  http://petesbloggerama.blogspot.com
BlogMetaFinder:    http://www.blogmetafinder.com

> Hi all,
> I hope this doesn't sound like a lame question, but I want to override
[quoted text clipped - 5 lines]
> Thanks,
> Jason

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.