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