Template for a Gridview?

  • Thread starter Thread starter Paul
  • Start date Start date
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
 
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).
 
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."
 
Back
Top