Template for a Gridview?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?UGF1bA==?=

    Template for a Gridview?

    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
  • Larry Bud

    #2
    Re: Template for a Gridview?

    On Mar 27, 1:36 pm, Paul <P...@discussio ns.microsoft.co mwrote:
    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).

    Comment

    • Mick Wilson

      #3
      Re: Template for a Gridview?

      On Mar 27, 1:36 pm, Paul <P...@discussio ns.microsoft.co mwrote:
      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:



      "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."

      Comment

      Working...