Template for a Gridview?

P

Paul

I have a large, complex Gridview (itemtemplates, boundfield, hyperlink
fields, etc.)

I want to use this same gridview on multiple pages.

Rather than copying this gridview on multiple pages, it there a "better",
more efficient way to do this?

Links to examples would be great.

- Paul
 
L

Larry Bud

I have a large, complex Gridview (itemtemplates, boundfield, hyperlink
fields, etc.)

I want to use this same gridview on multiple pages.

Rather than copying this gridview on multiple pages, it there a "better",
more efficient way to do this?

Links to examples would be great.

Yes, use an asp.net "skin".

A skin file defines look and feel for a control (be it gridview,
calendar control).
 
M

Mick Wilson

I have a large, complex Gridview (itemtemplates, boundfield, hyperlink
fields, etc.)

I want to use this same gridview on multiple pages.

Rather than copying this gridview on multiple pages, it there a "better",
more efficient way to do this?

Links to examples would be great.

- Paul

I think User Controls are what you're looking for. See this link for
details:

http://msdn2.microsoft.com/en-us/library/y6wb1a0e.aspx

"A user control is a kind of composite control that works much like an
ASP.NET Web page--you can add existing Web server controls and markup
to a user control, and define properties and methods for the control.
You can then embed them in ASP.NET Web pages, where they act as a
unit."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,202
Messages
2,571,057
Members
47,665
Latest member
salkete

Latest Threads

Top