Exportar (0) Imprimir
Expandir Tudo
Expandir Minimizar
Este artigo foi traduzido por máquina. Coloque o ponteiro do mouse sobre as frases do artigo para ver o texto original. Mais informações.
Tradução
Original

DetailsView.FooterStyle Propriedade

Gets a reference to the TableItemStyle object that allows you to set the appearance of the footer row in a DetailsView control.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (em System.Web. dll)

[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
public TableItemStyle FooterStyle { get; }

Valor da propriedade

Tipo: System.Web.UI.WebControls.TableItemStyle

A reference to the TableItemStyle that represents the style of the footer row in a DetailsView control.

The footer row is displayed at the bottom of the DetailsView control when the FooterText or FooterTemplate property is set.Use the FooterStyle property to control the appearance of the footer row in a DetailsView control.This property is read-only; however, you can set the properties of the TableItemStyle object it returns.The properties can be set declaratively in the form Property-Subproperty, where Subproperty is a property of the TableItemStyle object (for example, FooterStyle-ForeColor).The properties can also be set programmatically in the form Property.Subproperty (for example, FooterStyle.ForeColor).Configurações comuns geralmente incluem um Personalizar Cor do plano de fundo, primeiro plano cor e fonte propriedades.

The following code example demonstrates how to use the FooterStyle property to specify the font and style settings for the footer row.


<%@ Page language= %>

<!DOCTYPE html PUBLIC "-
    "http:
<html xmlns="http:
  <head runat=>
    <title>DetailsView FooterText Example</title>
</head>
<body>
    <form id= runat=>

      <h3>DetailsView FooterText Example</h3>

        <asp:detailsview id=
          datasourceid=
          datakeynames=
          autogeneraterows=
          allowpaging=
          footertext=   
          runat=>

          <headerstyle backcolor=
            forecolor=/>

          <footerstyle forecolor=
            backcolor= 
            font-names=
            font-size=
            font-bold=/>

        </asp:detailsview>

        <!-- This example uses Microsoft SQL Server and connects  -->
        <!-- to the Northwind sample database. Use an ASP.NET     -->
        <!-- expression to retrieve the connection string value   -->
        <!--  the web.config file.                            -->
        <asp:SqlDataSource ID= runat= 
          ConnectionString=
            
          InsertCommand="INSERT INTO [Customers]([CustomerID],
            [CompanyName], [Address], [City], [PostalCode], [Country]) 
            VALUES (@CustomerID, @CompanyName, @Address, @City, 
            @PostalCode, @Country)"

          SelectCommand="Select [CustomerID], [CompanyName], 
            [Address], [City], [PostalCode], [Country] From 
            [Customers]">
        </asp:SqlDataSource>
    </form>
  </body>
</html>



Contribuições da comunidade

ADICIONAR
Mostrar:
© 2014 Microsoft