473,325 Members | 2,480 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

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

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

Aug 22 '07 #1
2 4146
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

"Jason" wrote:
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

Aug 22 '07 #2
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

"Jason" wrote:
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

Aug 22 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: George Ter-Saakov | last post by:
I am trying to wrap PlaceHolder so it will output prefix/suffix (like <div>, </div>) before render the actual control. So i created public class clsSection : PlaceHolder protected override...
1
by: JWhitted | last post by:
I created a control which parses its sub objects and wraps the code in an HTML wrapper. For example: <abc:Section ID="Section1" Runat="server" Title="Example"> <p>This is an example.</p>...
1
by: ad | last post by:
I use the codes below to render a Gridview to Excel. But it fail with RegisterForEventValidation can just be call in Render() But if myGrid is a DataGrid, it run well. How can I render a...
0
by: milmus tender | last post by:
Hi, we have some customized EditorParts, which inherits from a DefaultEditor. This DefaultEditorPart inherits from the standard EditorPart-Class. In this DefaultEditorPart we override the...
3
by: Stan SR | last post by:
Hi, How to remove the border of each row (from the gridview control). ? I set borderWidth to 0, and the borders are not displayed with IE, but the top and bottom borders are with FireFox. ...
5
by: =?Utf-8?B?QWRhciBXZXNsZXk=?= | last post by:
Hi All, I have a GridView inside the EditItemTemplate of a FormView. Both FormView and GridView are data bound using an ObjectDataSource. When the FormView's ObjectDataSource object has a...
5
by: Tim Mackey | last post by:
hi, with a derived DataGrid control, i can override the CreateColumnSet method and scan into the DataGridColumns and set the DataFormatString, e.g. leave out the time part of a DateTime value. ...
1
by: Author | last post by:
I got into trouble with this problem. The data I am presenting in a GridView control has a column called "Website". That data comes from a stored procedure in SQL Server 2000. Most of them...
1
by: sivakrishna546 | last post by:
using System; using System.Collections; using System.ComponentModel; using System.Security.Permissions; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.