DetailsView 클래스

정의

테이블에 있는 데이터 소스의 단일 레코드 값을 표시합니다. 여기서 각 데이터 행은 레코드의 필드를 나타냅니다. DetailsView 컨트롤을 사용하면 레코드를 편집, 삭제 및 삽입할 수 있습니다.

public ref class DetailsView : System::Web::UI::WebControls::CompositeDataBoundControl, System::Web::UI::ICallbackEventHandler, System::Web::UI::IDataItemContainer, System::Web::UI::IPostBackEventHandler, System::Web::UI::WebControls::ICallbackContainer, System::Web::UI::WebControls::IPostBackContainer
public ref class DetailsView : System::Web::UI::WebControls::CompositeDataBoundControl, System::Web::UI::ICallbackEventHandler, System::Web::UI::IDataItemContainer, System::Web::UI::IPostBackEventHandler, System::Web::UI::WebControls::ICallbackContainer, System::Web::UI::WebControls::IDataBoundItemControl, System::Web::UI::WebControls::IFieldControl, System::Web::UI::WebControls::IPostBackContainer
[System.Web.UI.ControlValueProperty("SelectedValue")]
public class DetailsView : System.Web.UI.WebControls.CompositeDataBoundControl, System.Web.UI.ICallbackEventHandler, System.Web.UI.IDataItemContainer, System.Web.UI.IPostBackEventHandler, System.Web.UI.WebControls.ICallbackContainer, System.Web.UI.WebControls.IPostBackContainer
[System.Web.UI.ControlValueProperty("SelectedValue")]
public class DetailsView : System.Web.UI.WebControls.CompositeDataBoundControl, System.Web.UI.ICallbackEventHandler, System.Web.UI.IDataItemContainer, System.Web.UI.IPostBackEventHandler, System.Web.UI.WebControls.ICallbackContainer, System.Web.UI.WebControls.IDataBoundItemControl, System.Web.UI.WebControls.IFieldControl, System.Web.UI.WebControls.IPostBackContainer
[<System.Web.UI.ControlValueProperty("SelectedValue")>]
type DetailsView = class
    inherit CompositeDataBoundControl
    interface IDataItemContainer
    interface INamingContainer
    interface ICallbackContainer
    interface ICallbackEventHandler
    interface IPostBackEventHandler
    interface IPostBackContainer
[<System.Web.UI.ControlValueProperty("SelectedValue")>]
type DetailsView = class
    inherit CompositeDataBoundControl
    interface IDataItemContainer
    interface INamingContainer
    interface ICallbackContainer
    interface ICallbackEventHandler
    interface IPostBackEventHandler
    interface IPostBackContainer
    interface IDataBoundItemControl
    interface IDataBoundControl
    interface IFieldControl
Public Class DetailsView
Inherits CompositeDataBoundControl
Implements ICallbackContainer, ICallbackEventHandler, IDataItemContainer, IPostBackContainer, IPostBackEventHandler
Public Class DetailsView
Inherits CompositeDataBoundControl
Implements ICallbackContainer, ICallbackEventHandler, IDataBoundItemControl, IDataItemContainer, IFieldControl, IPostBackContainer, IPostBackEventHandler
상속
특성
구현

예제

다음 코드 예제를 사용 하는 방법을 보여 줍니다.는 간단한 master 세부 시나리오에 대 한 GridView 컨트롤과 함께 컨트롤을 사용 DetailsView 합니다. 컨트롤에서 GridView 선택한 항목의 세부 정보를 표시합니다.

<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>ASP.NET Example</title>
</head>
<body>
  <form id="form1" runat="server">
    <div>
      <table>
        <tr>
          <td>
            <asp:GridView ID="GridView1" runat="server" 
              AutoGenerateColumns="False" DataSourceID="Customers"
              DataKeyNames="CustomerID">
              <Columns>
                <asp:CommandField ShowSelectButton="True" />
                <asp:BoundField DataField="ContactName" HeaderText="ContactName" />
                <asp:BoundField DataField="CompanyName" HeaderText="CompanyName" />
              </Columns>
            </asp:GridView>
          </td>
          <td valign="top">
            <asp:DetailsView ID="DetailsView1" runat="server" 
              AutoGenerateRows="True" DataKeyNames="CustomerID"
              DataSourceID="Details" Height="50px" Width="301px">
            </asp:DetailsView>
          </td>
        </tr>
      </table>
        
      <asp:SqlDataSource ID="Details" runat="server" 
        ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
        SelectCommand="SELECT * FROM [Customers] WHERE ([CustomerID] = @CustomerID)">
        <SelectParameters>
          <asp:ControlParameter ControlID="GridView1" Name="CustomerID" 
            PropertyName="SelectedValue"
            Type="String" />
        </SelectParameters>
      </asp:SqlDataSource>
      <asp:SqlDataSource ID="Customers" runat="server" 
        ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
        SelectCommand="SELECT [CompanyName], [ContactName], [CustomerID] FROM [Customers]">
      </asp:SqlDataSource>
    </div>
  </form>
</body>
</html>
<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>ASP.NET Example</title>
</head>
<body>
  <form id="form1" runat="server">
    <div>
      <table>
        <tr>
          <td>
            <asp:GridView ID="GridView1" runat="server" 
              AutoGenerateColumns="False" DataSourceID="Customers"
              DataKeyNames="CustomerID">
              <Columns>
                <asp:CommandField ShowSelectButton="True" />
                <asp:BoundField DataField="ContactName" HeaderText="ContactName" />
                <asp:BoundField DataField="CompanyName" HeaderText="CompanyName" />
              </Columns>
            </asp:GridView>
          </td>
          <td valign="top">
            <asp:DetailsView ID="DetailsView1" runat="server" 
              AutoGenerateRows="True" DataKeyNames="CustomerID"
              DataSourceID="Details" Height="50px" Width="301px">
            </asp:DetailsView>
          </td>
        </tr>
      </table>
        
      <asp:SqlDataSource ID="Details" runat="server" 
        ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
        SelectCommand="SELECT * FROM [Customers] WHERE ([CustomerID] = @CustomerID)">
        <SelectParameters>
          <asp:ControlParameter ControlID="GridView1" Name="CustomerID" 
            PropertyName="SelectedValue"
            Type="String" />
        </SelectParameters>
      </asp:SqlDataSource>
      <asp:SqlDataSource ID="Customers" runat="server" 
        ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
        SelectCommand="SELECT [CompanyName], [ContactName], [CustomerID] FROM [Customers]">
      </asp:SqlDataSource>
    </div>
  </form>
</body>
</html>

다음 코드 예제를 사용 하는 방법에 설명 합니다 레코드를 DetailsView 추가, 삭제 및 편집 하는 컨트롤입니다.


<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
  void CustomerDetail_ItemInserted(object sender, 
    DetailsViewInsertedEventArgs e)
  {
    // Refresh the GridView control after a new record is inserted 
    // in the DetailsView control.
    CustomersView.DataBind();
  }

  void CustomerDetail_ItemInserting(object sender, 
    DetailsViewInsertEventArgs e)
  {
    // Iterate though the values entered by the user and HTML encode 
    // the values. This helps prevent malicious values from being 
    // stored in the data source.
    for (int i = 0; i < e.Values.Count; i++)
    {
      if (e.Values[i] != null)
      {
        e.Values[i] = Server.HtmlEncode(e.Values[i].ToString());
      }
    }
  }

  void CustomerDetail_ItemUpdated(object sender, 
    DetailsViewUpdatedEventArgs e)
  {
    // Refresh the GridView control after a new record is updated 
    // in the DetailsView control.
    CustomersView.DataBind();
  }

  void CustomerDetail_ItemUpdating(object sender, 
    DetailsViewUpdateEventArgs e)
  {
    // Iterate though the values entered by the user and HTML encode 
    // the values. This helps prevent malicious values from being 
    // stored in the data source.
    for (int i = 0; i < e.NewValues.Count; i++)
    {
      if (e.NewValues[i] != null)
      {
        e.NewValues[i] = Server.HtmlEncode(e.NewValues[i].ToString());
      }
    }
  }

  void CustomerDetail_ItemDeleted(object sender, 
    DetailsViewDeletedEventArgs e)
  {
    // Refresh the GridView control after a new record is updated 
    // in the DetailsView control.
    CustomersView.DataBind();
  }
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>
      DetailsView Example</title>
</head>
<body>
  <form id="Form1" runat="server">
    <h3>
      DetailsView Example</h3>
    <table cellspacing="10">
      <tr>
        <td>
          <!-- Use a GridView control in combination with      -->
          <!-- a DetailsView control to display master-detail  -->
          <!-- information. When the user selects a store from -->
          <!-- GridView control, the customers//s detailed     -->
          <!-- information is displayed in the DetailsView     -->
          <!-- control.                                        -->
          <asp:GridView ID="CustomersView" DataSourceID="Customers" 
            AutoGenerateColumns="False"
            DataKeyNames="CustomerID" runat="server">
            <HeaderStyle BackColor="Blue" ForeColor="White" />
            <Columns>
              <asp:CommandField ShowSelectButton="True" />
              <asp:BoundField DataField="ContactName" 
                HeaderText="ContactName" />
              <asp:BoundField DataField="CompanyName" 
                HeaderText="CompanyName" />
            </Columns>
          </asp:GridView>
        </td>
        <td valign="top">
          <asp:DetailsView ID="CustomerDetail" 
            DataSourceID="Details" AutoGenerateRows="false"
            AutoGenerateInsertButton="true" 
            AutoGenerateEditButton="true" 
            AutoGenerateDeleteButton="true"
            EmptyDataText="No records." 
            DataKeyNames="CustomerID" GridLines="Both" 
            OnItemInserted="CustomerDetail_ItemInserted"
            OnItemInserting="CustomerDetail_ItemInserting" 
            OnItemUpdated="CustomerDetail_ItemUpdated"
            OnItemUpdating="CustomerDetail_ItemUpdating" 
            OnItemDeleted="CustomerDetail_ItemDeleted"
            runat="server">
            <HeaderStyle BackColor="Navy" ForeColor="White" />
            <RowStyle BackColor="White" />
            <AlternatingRowStyle BackColor="LightGray" />
            <EditRowStyle BackColor="LightCyan" />
            <Fields>
              <asp:BoundField DataField="CustomerID" HeaderText="CustomerID" ReadOnly="True" />
              <asp:BoundField DataField="ContactName" HeaderText="ContactName" />
              <asp:BoundField DataField="ContactTitle" HeaderText="ContactTitle" />
              <asp:BoundField DataField="CompanyName" HeaderText="CompanyName" />
              <asp:BoundField DataField="Address" HeaderText="Address" />
              <asp:BoundField DataField="City" HeaderText="City" />
              <asp:BoundField DataField="Region" HeaderText="Region" />
              <asp:BoundField DataField="PostalCode" HeaderText="PostalCode" />
              <asp:BoundField DataField="Country" HeaderText="Country" />
              <asp:BoundField DataField="Phone" HeaderText="Phone" />
              <asp:BoundField DataField="Fax" HeaderText="Fax" />
            </Fields>
          </asp:DetailsView>
        </td>
      </tr>
    </table>
    <!-- This example uses Microsoft SQL Server and connects -->
    <!-- to the Northwind sample database.                   -->
    <!-- It is strongly recommended that each data-bound     -->
    <!-- control uses a separate data source control.        -->
    <asp:SqlDataSource ID="Customers" runat="server" 
      ConnectionString=
        "<%$ ConnectionStrings:NorthwindConnectionString %>"
      SelectCommand="SELECT [CompanyName], [ContactName], [CustomerID] 
        FROM [Customers]">
    </asp:SqlDataSource>
    <!-- Add a filter to the data source control for the     -->
    <!-- DetailsView control to display the details of the   -->
    <!-- store selected in the GridView control.             -->
    <asp:SqlDataSource ID="Details" 
      ConnectionString=
        "<%$ ConnectionStrings:NorthwindConnectionString %>"
      runat="server" 
      SelectCommand="SELECT * FROM [Customers] 
        WHERE ([CustomerID] = @CustomerID)"
      DeleteCommand="DELETE FROM [Customers] 
        WHERE [CustomerID] = @CustomerID"
      InsertCommand="INSERT INTO [Customers] ([CustomerID], 
        [CompanyName], [ContactName], [ContactTitle], [Address], 
        [City], [Region], [PostalCode], [Country], [Phone], [Fax]) 
        VALUES (@CustomerID, @CompanyName, @ContactName, @ContactTitle, 
        @Address, @City, @Region, @PostalCode, @Country, @Phone, @Fax)"
      UpdateCommand="UPDATE [Customers] SET [CompanyName] = @CompanyName, 
        [ContactName] = @ContactName, [ContactTitle] = @ContactTitle, 
        [Address] = @Address, [City] = @City, [Region] = @Region, 
        [PostalCode] = @PostalCode, [Country] = @Country, 
        [Phone] = @Phone, [Fax] = @Fax 
        WHERE [CustomerID] = @CustomerID">
      <SelectParameters>
        <asp:ControlParameter ControlID="CustomersView" 
          Name="CustomerID" PropertyName="SelectedValue"
          Type="String" />
      </SelectParameters>
      <DeleteParameters>
        <asp:Parameter Name="CustomerID" Type="String" />
      </DeleteParameters>
      <UpdateParameters>
        <asp:Parameter Name="CompanyName" Type="String" />
        <asp:Parameter Name="ContactName" Type="String" />
        <asp:Parameter Name="ContactTitle" Type="String" />
        <asp:Parameter Name="Address" Type="String" />
        <asp:Parameter Name="City" Type="String" />
        <asp:Parameter Name="Region" Type="String" />
        <asp:Parameter Name="PostalCode" Type="String" />
        <asp:Parameter Name="Country" Type="String" />
        <asp:Parameter Name="Phone" Type="String" />
        <asp:Parameter Name="Fax" Type="String" />
        <asp:Parameter Name="CustomerID" Type="String" />
      </UpdateParameters>
      <InsertParameters>
        <asp:Parameter Name="CustomerID" Type="String" />
        <asp:Parameter Name="CompanyName" Type="String" />
        <asp:Parameter Name="ContactName" Type="String" />
        <asp:Parameter Name="ContactTitle" Type="String" />
        <asp:Parameter Name="Address" Type="String" />
        <asp:Parameter Name="City" Type="String" />
        <asp:Parameter Name="Region" Type="String" />
        <asp:Parameter Name="PostalCode" Type="String" />
        <asp:Parameter Name="Country" Type="String" />
        <asp:Parameter Name="Phone" Type="String" />
        <asp:Parameter Name="Fax" Type="String" />
      </InsertParameters>
    </asp:SqlDataSource>
  </form>
</body>
</html>
<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
  Sub CustomerDetail_ItemInserted(ByVal sender As Object, _
    ByVal e As DetailsViewInsertedEventArgs)
    ' Refresh the GridView control after a new record is inserted in 
    ' the DetailsView control.
    CustomersView.DataBind()
  End Sub
  
  Sub CustomerDetail_ItemInserting(ByVal sender As Object, _
    ByVal e As DetailsViewInsertEventArgs)
    ' Iterate though the values entered by the user and HTML encode 
    ' the values. This helps prevent malicious values from being 
    ' stored in the data source.
    For i As Integer = 0 To e.Values.Count - 1
      If e.Values(i) IsNot Nothing Then
        e.Values(i) = Server.HtmlEncode(e.Values(i).ToString())
      End If
    Next
  End Sub
  
  Sub CustomerDetail_ItemUpdated(ByVal sender As Object, _
    ByVal e As DetailsViewUpdatedEventArgs)
    ' Refresh the GridView control after a new record is updated 
    ' in the DetailsView control.
    CustomersView.DataBind()
  End Sub
  
  Sub CustomerDetail_ItemUpdating(ByVal sender As Object, _
    ByVal e As DetailsViewUpdateEventArgs)
    ' Iterate though the values entered by the user and HTML encode 
    ' the values. This helps prevent malicious values from being 
    ' stored in the data source.
    For i As Integer = 0 To e.NewValues.Count - 1
      If e.NewValues(i) IsNot Nothing Then
        e.NewValues(i) = Server.HtmlEncode(e.NewValues(i).ToString())
      End If
    Next
  End Sub
  
  Sub CustomerDetail_ItemDeleted(ByVal sender As Object, _
    ByVal e As DetailsViewDeletedEventArgs)
    ' Refresh the GridView control after a new record is updated 
    ' in the DetailsView control.
    CustomersView.DataBind()
  End Sub
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>DetailsView Example</title>
</head>
<body>
  <form id="Form1" runat="server">
    <h3>DetailsView Example</h3>
    <table cellspacing="10">
      <tr>
        <td>
          <!-- Use a GridView control in combination with      -->
          <!-- a DetailsView control to display master-detail  -->
          <!-- information. When the user selects a store from -->
          <!-- GridView control, the customers's detailed      -->
          <!-- information is displayed in the DetailsView     -->
          <!-- control.                                        -->
          <asp:GridView ID="CustomersView" DataSourceID="Customers" 
            AutoGenerateColumns="False"
            DataKeyNames="CustomerID" runat="server">
            <HeaderStyle BackColor="Blue" ForeColor="White" />
            <Columns>
              <asp:CommandField ShowSelectButton="True" />
              <asp:BoundField DataField="ContactName" 
                HeaderText="ContactName" />
              <asp:BoundField DataField="CompanyName" 
                HeaderText="CompanyName" />
            </Columns>
          </asp:GridView>
        </td>
        <td valign="top">
          <asp:DetailsView ID="CustomerDetail" DataSourceID="Details" 
            AutoGenerateRows="false"
            AutoGenerateInsertButton="true" 
            AutoGenerateEditButton="true" 
            AutoGenerateDeleteButton="true"
            EmptyDataText="No records." 
            DataKeyNames="CustomerID" GridLines="Both" 
            OnItemInserted="CustomerDetail_ItemInserted"
            OnItemInserting="CustomerDetail_ItemInserting" 
            OnItemUpdated="CustomerDetail_ItemUpdated"
            OnItemUpdating="CustomerDetail_ItemUpdating" 
            OnItemDeleted="CustomerDetail_ItemDeleted"
            runat="server">
            <HeaderStyle BackColor="Navy" ForeColor="White" />
            <RowStyle BackColor="White" />
            <AlternatingRowStyle BackColor="LightGray" />
            <EditRowStyle BackColor="LightCyan" />
            <Fields>
              <asp:BoundField DataField="CustomerID" HeaderText="CustomerID" 
                ReadOnly="True" />
              <asp:BoundField DataField="ContactName" HeaderText="ContactName" />
              <asp:BoundField DataField="ContactTitle" HeaderText="ContactTitle" />
              <asp:BoundField DataField="CompanyName" HeaderText="CompanyName" />
              <asp:BoundField DataField="Address" HeaderText="Address" />
              <asp:BoundField DataField="City" HeaderText="City" />
              <asp:BoundField DataField="Region" HeaderText="Region" />
              <asp:BoundField DataField="PostalCode" HeaderText="PostalCode" />
              <asp:BoundField DataField="Country" HeaderText="Country" />
              <asp:BoundField DataField="Phone" HeaderText="Phone" />
              <asp:BoundField DataField="Fax" HeaderText="Fax" />
            </Fields>
          </asp:DetailsView>
        </td>
      </tr>
    </table>
    <!-- This example uses Microsoft SQL Server and connects -->
    <!-- to the Northwind sample database.                   -->
    <!-- It is strongly recommended that each data-bound     -->
    <!-- control uses a separate data source control.        -->
    <asp:SqlDataSource ID="Customers" runat="server" 
      ConnectionString=
        "<%$ ConnectionStrings:NorthwindConnectionString %>"
      SelectCommand="SELECT [CompanyName], [ContactName], [CustomerID] 
        FROM [Customers]">
    </asp:SqlDataSource>
    <!-- Add a filter to the data source control for the     -->
    <!-- DetailsView control to display the details of the   -->
    <!-- store selected in the GridView control.             -->
    <asp:SqlDataSource ID="Details" 
      ConnectionString=
        "<%$ ConnectionStrings:NorthwindConnectionString %>"
      runat="server" 
      SelectCommand="SELECT * FROM [Customers] 
        WHERE ([CustomerID] = @CustomerID)"
      DeleteCommand="DELETE FROM [Customers] 
        WHERE [CustomerID] = @CustomerID"
      InsertCommand="INSERT INTO [Customers] ([CustomerID], 
        [CompanyName], [ContactName], [ContactTitle], [Address], 
        [City], [Region], [PostalCode], [Country], [Phone], [Fax]) 
        VALUES (@CustomerID, @CompanyName, @ContactName, 
        @ContactTitle, @Address, @City, @Region, @PostalCode, 
        @Country, @Phone, @Fax)"
      UpdateCommand="UPDATE [Customers] SET 
        [CompanyName] = @CompanyName, 
        [ContactName] = @ContactName, [ContactTitle] = @ContactTitle, 
        [Address] = @Address, [City] = @City, [Region] = @Region, 
        [PostalCode] = @PostalCode, [Country] = @Country, 
        [Phone] = @Phone, [Fax] = @Fax 
        WHERE [CustomerID] = @CustomerID">
      <SelectParameters>
        <asp:ControlParameter ControlID="CustomersView" 
          Name="CustomerID" PropertyName="SelectedValue"
          Type="String" />
      </SelectParameters>
      <DeleteParameters>
        <asp:Parameter Name="CustomerID" Type="String" />
      </DeleteParameters>
      <UpdateParameters>
        <asp:Parameter Name="CompanyName" Type="String" />
        <asp:Parameter Name="ContactName" Type="String" />
        <asp:Parameter Name="ContactTitle" Type="String" />
        <asp:Parameter Name="Address" Type="String" />
        <asp:Parameter Name="City" Type="String" />
        <asp:Parameter Name="Region" Type="String" />
        <asp:Parameter Name="PostalCode" Type="String" />
        <asp:Parameter Name="Country" Type="String" />
        <asp:Parameter Name="Phone" Type="String" />
        <asp:Parameter Name="Fax" Type="String" />
        <asp:Parameter Name="CustomerID" Type="String" />
      </UpdateParameters>
      <InsertParameters>
        <asp:Parameter Name="CustomerID" Type="String" />
        <asp:Parameter Name="CompanyName" Type="String" />
        <asp:Parameter Name="ContactName" Type="String" />
        <asp:Parameter Name="ContactTitle" Type="String" />
        <asp:Parameter Name="Address" Type="String" />
        <asp:Parameter Name="City" Type="String" />
        <asp:Parameter Name="Region" Type="String" />
        <asp:Parameter Name="PostalCode" Type="String" />
        <asp:Parameter Name="Country" Type="String" />
        <asp:Parameter Name="Phone" Type="String" />
        <asp:Parameter Name="Fax" Type="String" />
      </InsertParameters>
    </asp:SqlDataSource>
  </form>
</body>
</html>

다음 코드 예제에서는 선언적으로 추가 하는 방법을 보여 줍니다 행 필드를 컨트롤입니다 DetailsView .

<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>ASP.NET Example</title>
</head>
<body>
  <form id="Form1" runat="server">
    <table cellspacing="10">
      <tr>
        <td>
          <!-- Use a GridView control in combination with      -->
          <!-- a DetailsView control to display master-detail  -->
          <!-- information. When the user selects a store from -->
          <!-- GridView control, the store's detailed          -->
          <!-- information is displayed in the DetailsView     -->
          <!-- control.                                        -->
          <asp:GridView ID="GridView1" runat="server" 
            DataSourceID="Customers" AutoGenerateColumns="False" 
            DataKeyNames="CustomerID">
            <Columns>
              <asp:CommandField ShowSelectButton="True" />
              <asp:BoundField DataField="ContactName" HeaderText="ContactName" />
              <asp:BoundField DataField="CompanyName" HeaderText="CompanyName" />
            </Columns>
          </asp:GridView>
        </td>
        <td valign="top">
          <asp:DetailsView ID="DetailsView" runat="server"
            DataSourceID="Details" AutoGenerateRows="false"
            DataKeyNames="CustomerID" >
            <HeaderStyle BackColor="Navy" ForeColor="White" />
            <Fields>
              <asp:BoundField DataField="CustomerID" HeaderText="CustomerID" 
                ReadOnly="True" />
              <asp:BoundField DataField="ContactName" HeaderText="ContactName" />
              <asp:BoundField DataField="ContactTitle" HeaderText="ContactTitle" />
              <asp:BoundField DataField="CompanyName" HeaderText="CompanyName" />
              <asp:BoundField DataField="City" HeaderText="City" />
              <asp:BoundField DataField="Region" HeaderText="Region" />
              <asp:BoundField DataField="PostalCode" HeaderText="PostalCode" />
              <asp:BoundField DataField="Country" HeaderText="Country" />
            </Fields>
          </asp:DetailsView>
        </td>
      </tr>
    </table>
    <!-- This example uses Microsoft SQL Server and connects -->
    <!-- to the Northwind sample database.                        -->
    <!-- It is strongly recommended that each data-bound     -->
    <!-- control uses a separate data source control.        -->
    <asp:SqlDataSource ID="Customers" runat="server" 
      ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
      SelectCommand="SELECT [CompanyName], [ContactName], [CustomerID] FROM [Customers]">
    </asp:SqlDataSource>
    <!-- Add a filter to the data source control for the     -->
    <!-- DetailsView control to display the details of the   -->
    <!-- store selected in the GridView control.             -->
    <asp:SqlDataSource ID="Details" runat="server" 
      ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
      SelectCommand="SELECT * FROM [Customers] WHERE ([CustomerID] = @CustomerID)">
      <SelectParameters>
        <asp:ControlParameter ControlID="GridView1" Name="CustomerID" 
          PropertyName="SelectedValue"
          Type="String" />
      </SelectParameters>
    </asp:SqlDataSource>
  </form>
</body>
</html>
<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>ASP.NET Example</title>
</head>
<body>
  <form id="Form1" runat="server">
    <table cellspacing="10">
      <tr>
        <td>
          <!-- Use a GridView control in combination with      -->
          <!-- a DetailsView control to display master-detail  -->
          <!-- information. When the user selects a store from -->
          <!-- GridView control, the store's detailed          -->
          <!-- information is displayed in the DetailsView     -->
          <!-- control.                                        -->
          <asp:GridView ID="GridView1" runat="server" 
            DataSourceID="Customers" AutoGenerateColumns="False" 
            DataKeyNames="CustomerID">
            <Columns>
              <asp:CommandField ShowSelectButton="True" />
              <asp:BoundField DataField="ContactName" HeaderText="ContactName" />
              <asp:BoundField DataField="CompanyName" HeaderText="CompanyName" />
            </Columns>
          </asp:GridView>
        </td>
        <td valign="top">
          <asp:DetailsView ID="DetailsView" runat="server"
            DataSourceID="Details" AutoGenerateRows="false"
            DataKeyNames="CustomerID" >
            <HeaderStyle BackColor="Navy" ForeColor="White" />
            <Fields>
              <asp:BoundField DataField="CustomerID" HeaderText="CustomerID" 
                ReadOnly="True" />
              <asp:BoundField DataField="ContactName" HeaderText="ContactName" />
              <asp:BoundField DataField="ContactTitle" HeaderText="ContactTitle" />
              <asp:BoundField DataField="CompanyName" HeaderText="CompanyName" />
              <asp:BoundField DataField="City" HeaderText="City" />
              <asp:BoundField DataField="Region" HeaderText="Region" />
              <asp:BoundField DataField="PostalCode" HeaderText="PostalCode" />
              <asp:BoundField DataField="Country" HeaderText="Country" />
            </Fields>
          </asp:DetailsView>
        </td>
      </tr>
    </table>
    <!-- This example uses Microsoft SQL Server and connects -->
    <!-- to the Northwind sample database.                        -->
    <!-- It is strongly recommended that each data-bound     -->
    <!-- control uses a separate data source control.        -->
    <asp:SqlDataSource ID="Customers" runat="server" 
      ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
      SelectCommand="SELECT [CompanyName], [ContactName], [CustomerID] FROM [Customers]">
    </asp:SqlDataSource>
    <!-- Add a filter to the data source control for the     -->
    <!-- DetailsView control to display the details of the   -->
    <!-- store selected in the GridView control.             -->
    <asp:SqlDataSource ID="Details" runat="server" 
      ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
      SelectCommand="SELECT * FROM [Customers] WHERE ([CustomerID] = @CustomerID)">
      <SelectParameters>
        <asp:ControlParameter ControlID="GridView1" Name="CustomerID" 
          PropertyName="SelectedValue"
          Type="String" />
      </SelectParameters>
    </asp:SqlDataSource>
  </form>
</body>
</html>

설명

항목 내용

소개

컨트롤은 DetailsView 테이블의 데이터 원본에서 단일 레코드를 표시 하는 데 사용 됩니다. 여기서 레코드의 각 필드 테이블의 행에 표시 됩니다. master 세부 시나리오에 GridView 대한 컨트롤과 함께 사용할 수 있습니다. DetailsView 컨트롤은 다음 기능을 지원 합니다.

  • 데이터 원본 컨트롤에 바인딩(예: SqlDataSource).

  • 기본 제공 삽입 기능.

  • 기본 제공 업데이트 및 삭제 기능.

  • 기본 제공 페이징 기능.

  • 동적으로 속성을 설정하고 이벤트를 처리하는 개체 모델에 프로그래밍 방식으로 액세스 DetailsView 합니다.

  • 테마 및 스타일을 통해 사용자 지정할 수 있는 모양입니다.

행 필드

컨트롤의 DetailsView 각 데이터 행은 필드 컨트롤을 선언하여 만들어집니다. 여러 행 필드 형식은 컨트롤에 있는 행의 동작을 결정합니다. 필드 컨트롤은 에서 DataControlField파생됩니다. 다음 표에서는 사용할 수 있는 다양한 행 필드 형식을 나열합니다.

열 필드 형식 Description
BoundField 데이터 원본에서 필드의 값을 텍스트로 표시합니다.
ButtonField 컨트롤에 명령 단추를 DetailsView 표시합니다. 이렇게 하면 추가 또는 제거 단추와 같은 사용자 지정 단추 컨트롤이 있는 행을 표시할 수 있습니다.
CheckBoxField 컨트롤에 검사 상자를 DetailsView 표시합니다. 이 행 필드 형식은 일반적으로 부울 값이 있는 필드를 표시하는 데 사용됩니다.
CommandField 컨트롤에서 편집, 삽입 또는 삭제 작업을 수행하는 기본 제공 명령 단추를 표시합니다 DetailsView .
HyperLinkField 하이퍼링크로 데이터 원본의 필드의 값을 표시합니다. 이 행 필드 형식을 사용하면 하이퍼링크의 URL에 두 번째 필드를 바인딩할 수 있습니다.
ImageField 컨트롤에 DetailsView 이미지를 표시합니다.
TemplateField 지정된 템플릿에 따라 컨트롤의 행에 DetailsView 대한 사용자 정의 콘텐츠를 표시합니다. 이 행 필드 형식을 사용하면 사용자 지정 행 필드를 만들 수 있습니다.

기본적으로 속성은 로 설정true되며 데이터 AutoGenerateRows 원본에서 바인딩 가능한 형식의 각 필드에 대해 바인딩된 행 필드 개체를 자동으로 생성합니다. 유효한 바인딩 가능한 형식은 String, DateTime, Decimal, Guid및 기본 형식 집합입니다. 그런 다음 각 필드가 데이터 원본에 표시되는 순서대로 행에 텍스트로 표시됩니다.

행을 자동으로 생성하면 레코드의 모든 필드를 빠르고 쉽게 표시할 수 있습니다. 그러나 컨트롤의 고급 기능을 사용하려면 컨트롤에 DetailsView 포함 DetailsView 할 행 필드를 명시적으로 선언해야 합니다. 행 필드를 선언하려면 먼저 속성을 falseAutoGenerateRows 설정합니다. 다음으로, 컨트롤의 여는 태그와 닫 <Fields> 는 태그 사이에 여는 태그와 닫는 태그를 DetailsView 추가합니다. 마지막으로 여는 태그와 닫 <Fields> 는 태그 사이에 포함할 행 필드를 나열합니다. 지정된 행 필드는 나열된 순서대로 Fields 컬렉션에 추가됩니다. Fields 컬렉션을 사용하면 컨트롤의 행 필드를 DetailsView 프로그래밍 방식으로 관리할 수 있습니다.

참고

자동으로 생성된 행 필드는 컬렉션에 Fields 추가되지 않습니다.

참고

명시적으로 선언된 행 필드는 자동으로 생성된 행 필드와 함께 표시될 수 있습니다. 두 필드를 모두 사용하면 명시적으로 선언된 행 필드가 먼저 렌더링되고, 그 다음에 자동으로 생성된 행 필드가 렌더링됩니다.

데이터 바인딩

컨트롤은 DetailsView 데이터 소스 컨트롤(예: SqlDataSource 컨트롤 또는 ObjectDataSource 컨트롤) 또는 인터페이스를 구현 System.Collections.IEnumerable 하는 모든 데이터 원본 컬렉션(예: System.Data.DataView, , System.Collections.ArrayListSystem.Collections.Generic.List<T>또는 기타 컬렉션 형식)에 바인딩될 수 있습니다. 다음 방법 중 하나를 사용하여 컨트롤을 DetailsView 적절한 데이터 원본 형식에 바인딩합니다.

  • 데이터 소스 컨트롤에 바인딩할 설정를 DataSourceID 의 속성을 DetailsView 컨트롤을 ID 데이터 소스 컨트롤의 값입니다. DetailsView 컨트롤에 자동으로 지정 된 데이터 소스 컨트롤에 바인딩합니다. 이것은 데이터 바인딩할 기본 방법입니다.

  • 인터페이스를 구현 System.Collections.IEnumerable 하는 데이터 원본에 바인딩하려면 프로그래밍 방식으로 컨트롤의 DetailsView 속성을 데이터 원본으로 설정한 DataSource 다음 메서드를 호출합니다DataBind.

데이터 바인딩에 대한 자세한 내용은 데이터베이스에 바인딩을 참조하세요.

보안

악성 클라이언트 스크립트 포함 될 수 있는 사용자 입력을 표시 하려면이 제어를 사용할 수 있습니다. 애플리케이션에서 표시 하기 전에 실행 스크립트, SQL 문 또는 다른 코드에 대 한 클라이언트에서 전송 되는 모든 정보를 확인 합니다. ASP.NET에서는 사용자 입력에서 차단 스크립트를 HTML 입력된 요청 유효성 검사 기능을 제공 합니다. 자세한 내용은 Script Exploits Overview를 참조하세요. 유효성 검사 서버 컨트롤이 사용자 입력을 평가 하기 위해 제공 됩니다. 자세한 내용은 유효성 검사 서버 컨트롤 구문합니다.

데이터 작업

컨트롤은 DetailsView 사용자가 업데이트, 삭제, 삽입 및 컨트롤의 항목을 통해 페이지를 만들 수 있는 기본 제공 기능을 제공합니다. 컨트롤이 DetailsView 데이터 소스 컨트롤 DetailsView 에 바인딩된 경우 컨트롤은 데이터 소스 컨트롤의 기능을 활용하고 자동 업데이트, 삭제, 삽입 및 페이징 기능을 제공할 수 있습니다.

참고

컨트롤은 DetailsView 다른 유형의 데이터 원본을 사용하여 업데이트, 삭제, 삽입 및 페이징 작업을 지원할 수 있지만 적절한 이벤트 처리기에서 이러한 작업에 대한 구현을 제공해야 합니다. 자세한 내용은 ItemDeleting, ItemInsertingItemUpdating을 참조하십시오.

컨트롤은 DetailsView , 또는 AutoGenerateInsertButton 속성을 각각 로 설정하여 편집, 삭제 또는 새로 만들기 AutoGenerateDeleteButtonAutoGenerateEditButton단추가 true있는 행 필드를 자동으로 추가할 CommandField 수 있습니다. 선택한 레코드를 즉시 삭제하는 삭제 단추와 달리 편집 또는 새로 만들기 단추를 클릭하면 DetailsView 컨트롤이 각각 편집 또는 삽입 모드로 전환됩니다. 편집 모드에서 편집 단추는 업데이트 및 취소 단추로 바뀝니다. 필드의 데이터 형식(예: TextBox 또는 CheckBox 컨트롤)에 적합한 입력 컨트롤은 사용자가 수정할 필드 값과 함께 표시됩니다. 업데이트 단추를 클릭하면 데이터 원본의 레코드가 업데이트되며 취소 단추를 클릭하면 변경 내용이 중단됩니다. 마찬가지로 삽입 모드에서 새로 만들기 단추는 삽입 및 취소 단추로 대체되고 사용자가 새 레코드의 값을 입력할 수 있도록 빈 입력 컨트롤이 표시됩니다.

참고

업데이트, 삭제 및 삽입 명령 단추를 ButtonField, CommandField또는 행 필드에 수동으로 정의할 TemplateField 수도 있습니다. 컨트롤은 DetailsView 속성이 "편집", "업데이트", "삭제", "새로 만들기", "삽입" 또는 "취소"로 설정된 단추를 CommandName 인식합니다. 그러나 여전히 기능을 직접 제공해야 합니다. 자세한 내용은 ItemDeleting, ItemInsertingItemUpdating을 참조하십시오.

컨트롤은 DetailsView 사용자가 데이터 원본의 다른 레코드로 이동할 수 있는 페이징 기능을 제공합니다. 사용하도록 설정하면 페이지 탐색 컨트롤이 호출기 행에 표시됩니다. 페이징을 사용하려면 속성을 trueAllowPaging 설정합니다. 호출기 행을 사용 하 여 사용자 지정할 수 있습니다는 PagerStylePagerSettings 속성입니다.

사용자 인터페이스 사용자 지정

컨트롤의 DetailsView 여러 부분에 대한 스타일 속성을 설정하여 컨트롤의 모양을 사용자 지정할 수 있습니다. 다음 표에서는 설정할 수 있는 스타일 속성을 나열합니다.

스타일 속성 Description
AlternatingRowStyle 컨트롤의 교대로 데이터 행에 DetailsView 대한 스타일 설정입니다. 이 속성을 설정하면 데이터 행이 대역으로 표시되고 설정과 설정이 RowStyle 번갈아 표시됩니다 AlternatingRowStyle .
CommandRowStyle 기본 제공 명령 단추가 포함된 행의 스타일 설정입니다.
EditRowStyle 컨트롤이 편집 모드에 있을 때 데이터 행에 DetailsView 대한 스타일 설정입니다.
EmptyDataRowStyle 데이터 원본에 레코드가 없는 경우 컨트롤에 DetailsView 표시되는 빈 데이터 행에 대한 스타일 설정입니다.
FooterStyle 바닥글 행의 스타일 설정입니다.
HeaderStyle 머리글 행의 스타일 설정입니다.
InsertRowStyle 컨트롤이 삽입 모드에 있을 때 데이터 행에 DetailsView 대한 스타일 설정입니다.
PagerStyle 호출기 행의 스타일 설정입니다.
RowStyle 컨트롤의 데이터 행에 대한 스타일 설정입니다 DetailsView . AlternatingRowStyle 속성도 설정되면 설정과 AlternatingRowStyle 설정 간에 데이터 행이 RowStyle 번갈아 표시됩니다.
FieldHeaderStyle 머리글 열의 스타일 설정입니다.

이벤트

DetailsView 컨트롤에 대해 프로그래밍할 수 있는 몇 가지 이벤트를 제공 합니다. 이렇게 하면 이벤트가 발생할 때마다 사용자 지정 루틴을 실행할 수 있습니다. 다음 표에서에서 지 원하는 이벤트를 DetailsView 제어 합니다. 또한 컨트롤은 DetailsView 기본 클래스, , , , InitDataBoundDisposedLoadPreRender, 및 Render에서 이러한 이벤트를 상속합니다. DataBinding

이벤트 설명
ItemCommand DetailsView 컨트롤에서 단추를 클릭하면 이 이벤트가 발생합니다.
ItemCreated 컨트롤에서 DetailsView 모든 DetailsViewRow 개체를 만든 후에 발생합니다. 이 이벤트는 레코드가 표시되기 전에 레코드의 값을 수정하는 데 자주 사용됩니다.
ItemDeleted 삭제 단추를 클릭할 때 발생하지만 컨트롤이 DetailsView 데이터 원본에서 레코드를 삭제한 후에 발생합니다. 이 이벤트는 종종 삭제 작업의 결과를 검사 데 사용됩니다.
ItemDeleting 삭제 단추를 클릭할 때 컨트롤이 DetailsView 데이터 원본에서 레코드를 삭제하기 전에 발생합니다. 이 이벤트는 종종 삭제 작업을 취소하는 데 사용됩니다.
ItemInserted 삽입 단추를 클릭할 때 컨트롤이 레코드를 삽입한 DetailsView 후에 발생합니다. 이 이벤트는 삽입 작업의 결과를 검사 데 자주 사용됩니다.
ItemInserting 삽입 단추를 클릭할 때 컨트롤이 레코드를 DetailsView 삽입하기 전에 발생합니다. 이 이벤트는 삽입 작업을 취소하는 데 자주 사용됩니다.
ItemUpdated 업데이트 단추를 클릭하지만 컨트롤이 행을 업데이트한 DetailsView 후에 발생합니다. 이 이벤트는 업데이트 작업의 결과를 검사 데 자주 사용됩니다.
ItemUpdating 업데이트 단추를 클릭할 때 컨트롤이 레코드를 DetailsView 업데이트하기 전에 발생합니다. 이 이벤트는 업데이트 작업을 취소하는 데 자주 사용됩니다.
ModeChanged 컨트롤이 모드를 DetailsView 변경한 후 발생합니다(편집, 삽입 또는 읽기 전용 모드). 작업을 수행 하려면이 이벤트는 대개 때는 DetailsView 컨트롤 모드를 변경 합니다.
ModeChanging 컨트롤이 모드를 DetailsView 변경하기 전에 발생합니다(편집, 삽입 또는 읽기 전용 모드). 이 이벤트는 종종 모드 변경을 취소 하려면 사용 합니다.
PageIndexChanged 페이저 단추 중 하나를 클릭하면 DetailsView 컨트롤이 페이징 작업을 처리한 후에 이 이벤트가 발생합니다. 이 이벤트는 사용자가 컨트롤의 다른 레코드로 이동한 후 작업을 수행해야 하는 경우에 일반적으로 사용됩니다.
PageIndexChanging 페이저 단추 중 하나를 클릭하면 DetailsView 컨트롤이 페이징 작업을 처리하기 전에 이 이벤트가 발생합니다. 이 이벤트는 페이징 작업을 취소하는 데 자주 사용됩니다.

접근성

접근성 표준을 준수 하는 태그를 생성할 수 있도록이 컨트롤을 구성 하는 방법에 대 한 정보를 참조 하세요 Visual Studio 및 ASP.NET의 접근성ASP.NET 컨트롤과내게필요한옵션.

선언 구문

<asp:DetailsView
    AccessKey="string"
    AllowPaging="True|False"
    AutoGenerateDeleteButton="True|False"
    AutoGenerateEditButton="True|False"
    AutoGenerateInsertButton="True|False"
    AutoGenerateRows="True|False"
    BackColor="color name|#dddddd"
    BackImageUrl="uri"
    BorderColor="color name|#dddddd"
    BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|Groove|Ridge|
        Inset|Outset"
    BorderWidth="size"
    Caption="string"
    CaptionAlign="NotSet|Top|Bottom|Left|Right"
    CellPadding="integer"
    CellSpacing="integer"
    CssClass="string"
    DataKeyNames="string"
    DataMember="string"
    DataSource="string"
    DataSourceID="string"
    DefaultMode="ReadOnly|Edit|Insert"
    EmptyDataText="string"
    Enabled="True|False"
    EnablePagingCallbacks="True|False"
    EnableTheming="True|False"
    EnableViewState="True|False"
    Font-Bold="True|False"
    Font-Italic="True|False"
    Font-Names="string"
    Font-Overline="True|False"
    Font-Size="string|Smaller|Larger|XX-Small|X-Small|Small|Medium|
        Large|X-Large|XX-Large"
    Font-Strikeout="True|False"
    Font-Underline="True|False"
    FooterText="string"
    ForeColor="color name|#dddddd"
    GridLines="None|Horizontal|Vertical|Both"
    HeaderText="string"
    Height="size"
    HorizontalAlign="NotSet|Left|Center|Right|Justify"
    ID="string"
    OnDataBinding="DataBinding event handler"
    OnDataBound="DataBound event handler"
    OnDisposed="Disposed event handler"
    OnInit="Init event handler"
    OnItemCommand="ItemCommand event handler"
    OnItemCreated="ItemCreated event handler"
    OnItemDeleted="ItemDeleted event handler"
    OnItemDeleting="ItemDeleting event handler"
    OnItemInserted="ItemInserted event handler"
    OnItemInserting="ItemInserting event handler"
    OnItemUpdated="ItemUpdated event handler"
    OnItemUpdating="ItemUpdating event handler"
    OnLoad="Load event handler"
    OnModeChanged="ModeChanged event handler"
    OnModeChanging="ModeChanging event handler"
    OnPageIndexChanged="PageIndexChanged event handler"
    OnPageIndexChanging="PageIndexChanging event handler"
    OnPreRender="PreRender event handler"
    OnUnload="Unload event handler"
    PageIndex="integer"
    PagerSettings-FirstPageImageUrl="uri"
    PagerSettings-FirstPageText="string"
    PagerSettings-LastPageImageUrl="uri"
    PagerSettings-LastPageText="string"
    PagerSettings-Mode="NextPrevious|Numeric|NextPreviousFirstLast|NumericFirstLast"
    PagerSettings-NextPageImageUrl="uri"
    PagerSettings-NextPageText="string"
    PagerSettings-PageButtonCount="integer"
    PagerSettings-Position="Bottom|Top|TopAndBottom"
    PagerSettings-PreviousPageImageUrl="uri"
    PagerSettings-PreviousPageText="string"
    PagerSettings-Visible="True|False"
    runat="server"
    SkinID="string"
    Style="string"
    TabIndex="integer"
    ToolTip="string"
    Visible="True|False"
    Width="size"
>
        <AlternatingRowStyle />
        <CommandRowStyle />
        <EditRowStyle />
        <EmptyDataRowStyle />
        <EmptyDataTemplate>
            <!-- child controls -->
        </EmptyDataTemplate>
        <FieldHeaderStyle />
        <Fields>
                <asp:BoundField
                    AccessibleHeaderText="string"
                    ApplyFormatInEditMode="True|False"
                    ConvertEmptyStringToNull="True|False"
                    DataField="string"
                    DataFormatString="string"
                    FooterText="string"
                    HeaderImageUrl="uri"
                    HeaderText="string"
                    HtmlEncode="True|False"
                    InsertVisible="True|False"
                    NullDisplayText="string"
                    ReadOnly="True|False"
                    ShowHeader="True|False"
                    SortExpression="string"
                    Visible="True|False"
>
                        <ControlStyle />
                        <FooterStyle />
                        <HeaderStyle />
                        <ItemStyle />
                </asp:BoundField>
                <asp:ButtonField
                    AccessibleHeaderText="string"
                    ButtonType="Button|Image|Link"
                    CausesValidation="True|False"
                    CommandName="string"
                    DataTextField="string"
                    DataTextFormatString="string"
                    FooterText="string"
                    HeaderImageUrl="uri"
                    HeaderText="string"
                    ImageUrl="uri"
                    InsertVisible="True|False"
                    ShowHeader="True|False"
                    SortExpression="string"
                    Text="string"
                    ValidationGroup="string"
                    Visible="True|False"
>
                        <ControlStyle />
                        <FooterStyle />
                        <HeaderStyle />
                        <ItemStyle />
                </asp:ButtonField>
                <asp:CheckBoxField
                    AccessibleHeaderText="string"
                    DataField="string"
                    FooterText="string"
                    HeaderImageUrl="uri"
                    HeaderText="string"
                    InsertVisible="True|False"
                    ReadOnly="True|False"
                    ShowHeader="True|False"
                    SortExpression="string"
                    Text="string"
                    Visible="True|False"
>
                        <ControlStyle />
                        <FooterStyle />
                        <HeaderStyle />
                        <ItemStyle />
                </asp:CheckBoxField>
                <asp:CommandField
                    AccessibleHeaderText="string"
                    ButtonType="Button|Image|Link"
                    CancelImageUrl="uri"
                    CancelText="string"
                    CausesValidation="True|False"
                    DeleteImageUrl="uri"
                    DeleteText="string"
                    EditImageUrl="uri"
                    EditText="string"
                    FooterText="string"
                    HeaderImageUrl="uri"
                    HeaderText="string"
                    InsertImageUrl="uri"
                    InsertText="string"
                    InsertVisible="True|False"
                    NewImageUrl="uri"
                    NewText="string"
                    SelectImageUrl="uri"
                    SelectText="string"
                    ShowCancelButton="True|False"
                    ShowDeleteButton="True|False"
                    ShowEditButton="True|False"
                    ShowHeader="True|False"
                    ShowInsertButton="True|False"
                    ShowSelectButton="True|False"
                    SortExpression="string"
                    UpdateImageUrl="uri"
                    UpdateText="string"
                    ValidationGroup="string"
                    Visible="True|False"
>
                        <ControlStyle />
                        <FooterStyle />
                        <HeaderStyle />
                        <ItemStyle />
                </asp:CommandField>
                <asp:DynamicField
                    AccessibleHeaderText="string"
                    ApplyFormatInEditMode="True|False"
                    ConvertEmptyStringToNull="True|False"
                    DataField="string"
                    DataFormatString="string"
                    FooterText="string"
                    HeaderImageUrl="uri"
                    HeaderText="string"
                    HtmlEncode="True|False"
                    InsertVisible="True|False"
                    NullDisplayText="string"
                    ShowHeader="True|False"
                    UIHint="string"
                    Visible="True|False"
>
                        <ControlStyle />
                        <FooterStyle />
                        <HeaderStyle />
                        <ItemStyle />
                </asp:DynamicField>
                <asp:HyperLinkField
                    AccessibleHeaderText="string"
                    DataNavigateUrlFields="string"
                    DataNavigateUrlFormatString="string"
                    DataTextField="string"
                    DataTextFormatString="string"
                    FooterText="string"
                    HeaderImageUrl="uri"
                    HeaderText="string"
                    InsertVisible="True|False"
                    NavigateUrl="uri"
                    ShowHeader="True|False"
                    SortExpression="string"
                    Target="string|_blank|_parent|_search|_self|_top"
                    Text="string"
                    Visible="True|False"
>
                        <ControlStyle />
                        <FooterStyle />
                        <HeaderStyle />
                        <ItemStyle />
                </asp:HyperLinkField>
                <asp:ImageField
                    AccessibleHeaderText="string"
                    AlternateText="string"
                    ConvertEmptyStringToNull="True|False"
                    DataAlternateTextField="string"
                    DataAlternateTextFormatString="string"
                    DataImageUrlField="string"
                    DataImageUrlFormatString="string"
                    FooterText="string"
                    HeaderImageUrl="uri"
                    HeaderText="string"
                    InsertVisible="True|False"
                    NullDisplayText="string"
                    NullImageUrl="uri"
                    ReadOnly="True|False"
                    ShowHeader="True|False"
                    SortExpression="string"
                    Visible="True|False"
>
                        <ControlStyle />
                        <FooterStyle />
                        <HeaderStyle />
                        <ItemStyle />
                </asp:ImageField>
                <asp:TemplateField
                    AccessibleHeaderText="string"
                    ConvertEmptyStringToNull="True|False"
                    FooterText="string"
                    HeaderImageUrl="uri"
                    HeaderText="string"
                    InsertVisible="True|False"
                    ShowHeader="True|False"
                    SortExpression="string"
                    Visible="True|False"
>
                            <ControlStyle />
                            <FooterStyle />
                            <HeaderStyle />
                            <ItemStyle />
                        <AlternatingItemTemplate>
                            <!-- child controls -->
                        </AlternatingItemTemplate>
                        <EditItemTemplate>
                            <!-- child controls -->
                        </EditItemTemplate>
                        <FooterTemplate>
                            <!-- child controls -->
                        </FooterTemplate>
                        <HeaderTemplate>
                            <!-- child controls -->
                        </HeaderTemplate>
                        <InsertItemTemplate>
                            <!-- child controls -->
                        </InsertItemTemplate>
                        <ItemTemplate>
                            <!-- child controls -->
                        </ItemTemplate>
                </asp:TemplateField>
        </Fields>
        <FooterStyle />
        <FooterTemplate>
            <!-- child controls -->
        </FooterTemplate>
        <HeaderStyle />
        <HeaderTemplate>
            <!-- child controls -->
        </HeaderTemplate>
        <InsertRowStyle />
        <PagerSettings
            FirstPageImageUrl="uri"
            FirstPageText="string"
            LastPageImageUrl="uri"
            LastPageText="string"
            Mode="NextPrevious|Numeric|NextPreviousFirstLast|
                NumericFirstLast"
            NextPageImageUrl="uri"
            NextPageText="string"
            OnPropertyChanged="PropertyChanged event handler"
            PageButtonCount="integer"
            Position="Bottom|Top|TopAndBottom"
            PreviousPageImageUrl="uri"
            PreviousPageText="string"
            Visible="True|False"
        />
        <PagerStyle />
        <PagerTemplate>
            <!-- child controls -->
        </PagerTemplate>
        <RowStyle        />
</asp:DetailsView>

생성자

DetailsView()

DetailsView 클래스의 새 인스턴스를 초기화합니다.

속성

AccessKey

웹 서버 컨트롤을 빠르게 탐색할 수 있는 선택키를 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
Adapter

컨트롤에 대한 브라우저별 어댑터를 가져옵니다.

(다음에서 상속됨 Control)
AllowPaging

페이징 기능을 사용할지 여부를 나타내는 값을 가져오거나 설정합니다.

AlternatingRowStyle

TableItemStyle 컨트롤에 있는 대체 데이터 행의 모양을 설정하는 데 사용할 수 있는 DetailsView 개체에 대한 참조를 가져옵니다.

AppRelativeTemplateSourceDirectory

이 컨트롤이 포함된 Page 또는 UserControl 개체의 애플리케이션 상대 가상 디렉터리를 가져오거나 설정합니다.

(다음에서 상속됨 Control)
Attributes

컨트롤의 속성과 일치하지 않는 임의의 특성(렌더링하는 경우에만 해당)의 컬렉션을 가져옵니다.

(다음에서 상속됨 WebControl)
AutoGenerateDeleteButton

현재 레코드를 삭제하는 기본 제공 컨트롤이 DetailsView 컨트롤에 표시되는지 여부를 나타내는 값을 가져오거나 설정합니다.

AutoGenerateEditButton

현재 레코드를 편집하는 기본 제공 컨트롤이 DetailsView 컨트롤에 표시되는지 여부를 나타내는 값을 가져오거나 설정합니다.

AutoGenerateInsertButton

새 레코드를 삽입하는 기본 제공 컨트롤이 DetailsView 컨트롤에 표시되는지 여부를 나타내는 값을 가져오거나 설정합니다.

AutoGenerateRows

데이터 소스의 각 필드에 대해 행 필드가 자동으로 생성되고 DetailsView 컨트롤에 표시되는지 여부를 나타내는 값을 가져오거나 설정합니다.

BackColor

웹 서버 컨트롤의 배경색을 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
BackImageUrl

DetailsView 컨트롤의 배경에 표시할 이미지의 URL을 가져오거나 설정합니다.

BindingContainer

이 컨트롤의 데이터 바인딩이 포함된 컨트롤을 가져옵니다.

(다음에서 상속됨 Control)
BorderColor

웹 컨트롤의 테두리 색을 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
BorderStyle

웹 서버 컨트롤의 테두리 스타일을 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
BorderWidth

웹 서버 컨트롤의 테두리 너비를 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
BottomPagerRow

DetailsViewRow 컨트롤의 아래쪽 페이저 행을 나타내는 DetailsView 개체를 가져옵니다.

Caption

DetailsView 컨트롤의 HTML 캡션 요소에서 렌더링할 텍스트를 가져오거나 설정합니다. 이 속성을 사용하면 보조 기술 디바이스 사용자가 컨트롤에 더 쉽게 액세스할 수 있습니다.

CaptionAlign

DetailsView 컨트롤에 있는 HTML 캡션 요소의 가로 또는 세로 위치를 가져오거나 설정합니다. 이 속성을 사용하면 보조 기술 디바이스 사용자가 컨트롤에 더 쉽게 액세스할 수 있습니다.

CellPadding

셀 내용과 셀 테두리 사이의 여백 크기를 가져오거나 설정합니다.

CellSpacing

셀 사이의 여백 크기를 가져오거나 설정합니다.

ChildControlsCreated

서버 컨트롤의 자식 컨트롤이 만들어졌는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Control)
ClientID

ASP.NET에서 생성하는 HTML 태그의 컨트롤 ID를 가져옵니다.

(다음에서 상속됨 Control)
ClientIDMode

ClientID 속성의 값을 생성하는 데 사용되는 알고리즘을 가져오거나 설정합니다.

(다음에서 상속됨 Control)
ClientIDSeparator

ClientID 속성에 사용된 구분 문자를 나타내는 문자 값을 가져옵니다.

(다음에서 상속됨 Control)
CommandRowStyle

TableItemStyle 컨트롤에 있는 명령 행의 모양을 설정하는 데 사용할 수 있는 DetailsView 개체에 대한 참조를 가져옵니다.

Context

현재 웹 요청에 대한 서버 컨트롤과 관련된 HttpContext 개체를 가져옵니다.

(다음에서 상속됨 Control)
Controls

데이터 바인딩된 합성 컨트롤 내에 있는 자식 컨트롤의 컬렉션을 가져옵니다.

(다음에서 상속됨 CompositeDataBoundControl)
ControlStyle

웹 서버 컨트롤의 스타일을 가져옵니다. 이 속성은 주로 컨트롤 개발자가 사용합니다.

(다음에서 상속됨 WebControl)
ControlStyleCreated

Style 개체가 ControlStyle 속성에 대해 만들어졌는지 여부를 나타내는 값을 가져옵니다. 이 속성은 주로 컨트롤 개발자가 사용합니다.

(다음에서 상속됨 WebControl)
CssClass

클라이언트의 웹 서버 컨트롤에서 렌더링한 CSS 스타일시트 클래스를 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
CurrentMode

DetailsView 컨트롤의 현재 데이터 입력 모드를 가져옵니다.

DataItem

DetailsView 컨트롤에 바인딩된 데이터 항목을 가져옵니다.

DataItemContainer

명명 컨테이너가 IDataItemContainer를 구현할 경우 명명 컨테이너에 대한 참조를 가져옵니다.

(다음에서 상속됨 Control)
DataItemCount

내부 데이터 소스의 항목 수를 가져옵니다.

DataItemIndex

내부 데이터 소스에서 DetailsView 컨트롤에 표시되는 항목의 인덱스를 가져옵니다.

DataKey

표시된 레코드의 기본 키를 나타내는 DataKey 개체를 가져옵니다.

DataKeyNames

데이터 소스에 대한 키 필드의 이름이 들어 있는 배열을 가져오거나 설정합니다.

DataKeysContainer

명명 컨테이너가 IDataKeysControl를 구현할 경우 명명 컨테이너에 대한 참조를 가져옵니다.

(다음에서 상속됨 Control)
DataMember

데이터 소스에 여러 개의 고유한 데이터 항목 목록이 들어 있는 경우 데이터 바인딩된 컨트롤에 바인딩되는 데이터 목록의 이름을 가져오거나 설정합니다.

(다음에서 상속됨 DataBoundControl)
DataSource

데이터 바인딩된 컨트롤에서 데이터 항목의 목록을 검색할 소스 개체를 가져오거나 설정합니다.

(다음에서 상속됨 BaseDataBoundControl)
DataSourceID

데이터 바인딩된 컨트롤이 데이터 항목 목록을 검색하는 컨트롤의 ID를 가져오거나 설정합니다.

(다음에서 상속됨 DataBoundControl)
DataSourceObject

IDataSource 인터페이스를 구현하는 개체를 가져옵니다. 개체의 데이터 콘텐츠에 대한 액세스를 제공합니다.

(다음에서 상속됨 DataBoundControl)
DefaultMode

DetailsView 컨트롤의 기본 데이터 입력 모드를 가져오거나 설정합니다.

DeleteMethod

컨트롤이 삭제 작업을 수행하는 경우 호출되는 페이지의 메서드에 대한 이름을 가져오거나 설정합니다.

DeleteMethod

데이터를 삭제하기 위해 호출할 메서드의 이름을 가져오거나 설정합니다.

(다음에서 상속됨 CompositeDataBoundControl)
DesignMode

디자인 화면에서 컨트롤이 사용 중인지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Control)
EditRowStyle

TableItemStyle 컨트롤이 편집 모드에 있을 때 데이터 행의 모양을 설정하는 데 사용할 수 있는 DetailsView 개체에 대한 참조를 가져옵니다.

EmptyDataRowStyle

TableItemStyle 컨트롤에 바인딩된 데이터 소스에 레코드가 들어 있지 않은 경우 표시되는 빈 데이터 행의 모양을 설정하는 데 사용할 수 있는 DetailsView 개체에 대한 참조를 가져옵니다.

EmptyDataTemplate

레코드가 들어 있지 않은 데이터 소스에 DetailsView 컨트롤이 바인딩될 때 렌더링되는 빈 데이터 행에 대한 사용자 정의 내용을 가져오거나 설정합니다.

EmptyDataText

레코드가 들어 있지 않은 데이터 소스에 DetailsView 컨트롤이 바인딩될 때 렌더링되는 빈 데이터 행에 대한 사용자 정의 내용을 가져오거나 설정합니다.

Enabled

웹 서버 컨트롤이 활성화되어 있는지 여부를 나타내는 값을 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
EnableModelValidation

데이터 모델 유효성 검사의 활성화 여부를 나타내는 값을 가져오거나 설정합니다.

EnablePagingCallbacks

DetailsView 컨트롤의 페이징 작업에 클라이언트측 콜백 기능을 사용할지 여부를 나타내는 값을 가져오거나 설정합니다.

EnableTheming

이 컨트롤에 테마를 적용할지 여부를 나타내는 값을 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
EnableViewState

서버 컨트롤이 해당 뷰 상태와 포함하고 있는 모든 자식 컨트롤의 뷰 상태를, 요청하는 클라이언트까지 유지하는지 여부를 나타내는 값을 가져오거나 설정합니다.

(다음에서 상속됨 Control)
Events

컨트롤에 대한 이벤트 처리기 대리자의 목록을 가져옵니다. 이 속성은 읽기 전용입니다.

(다음에서 상속됨 Control)
FieldHeaderStyle

TableItemStyle 컨트롤에 있는 머리글 열의 모양을 설정하는 데 사용할 수 있는 DetailsView 개체에 대한 참조를 가져옵니다.

Fields

DataControlField 컨트롤의 명시적으로 선언된 행 필드를 나타내는 DetailsView 개체의 컬렉션을 가져옵니다.

Font

웹 서버 컨트롤과 연결된 글꼴 속성을 가져옵니다.

(다음에서 상속됨 WebControl)
FooterRow

DetailsViewRow 컨트롤의 바닥글 행을 나타내는 DetailsView 개체를 가져옵니다.

FooterStyle

TableItemStyle 컨트롤에 있는 바닥글 행의 모양을 설정하는 데 사용할 수 있는 DetailsView 개체에 대한 참조를 가져옵니다.

FooterTemplate

DetailsView 컨트롤의 바닥글 행에 대한 사용자 정의 내용을 가져오거나 설정합니다.

FooterText

DetailsView 컨트롤의 바닥글 행에 표시할 텍스트를 가져오거나 설정합니다.

ForeColor

웹 서버 컨트롤의 전경색(보통 텍스트 색)을 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
GridLines

DetailsView 컨트롤의 모눈선 스타일을 가져오거나 설정합니다.

HasAttributes

컨트롤에 특성 집합이 있는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 WebControl)
HasChildViewState

현재 서버 컨트롤의 자식 컨트롤에 저장된 뷰 상태 설정 값이 있는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Control)
HeaderRow

DetailsViewRow 컨트롤의 머리글 행을 나타내는 DetailsView 개체를 가져옵니다.

HeaderStyle

TableItemStyle 컨트롤에 있는 머리글 행의 모양을 설정하는 데 사용할 수 있는 DetailsView 개체에 대한 참조를 가져옵니다.

HeaderTemplate

DetailsView 컨트롤의 머리글 행에 대한 사용자 정의 내용을 가져오거나 설정합니다.

HeaderText

DetailsView 컨트롤의 머리글 행에 표시할 텍스트를 가져오거나 설정합니다.

Height

웹 서버 컨트롤의 높이를 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
HorizontalAlign

페이지 내에 있는 DetailsView 컨트롤의 가로 맞춤을 가져오거나 설정합니다.

ID

서버 컨트롤에 할당된 프로그래밍 ID를 가져오거나 설정합니다.

(다음에서 상속됨 Control)
IdSeparator

컨트롤 식별자를 구분하는 데 사용되는 문자를 가져옵니다.

(다음에서 상속됨 Control)
Initialized

데이터 바인딩된 컨트롤이 초기화되었는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 BaseDataBoundControl)
InsertMethod

컨트롤이 삽입 작업을 수행하는 경우 호출되는 페이지의 메서드에 대한 이름을 가져오거나 설정합니다.

InsertMethod

데이터를 삽입하기 위해 호출할 메서드의 이름을 가져오거나 설정합니다.

(다음에서 상속됨 CompositeDataBoundControl)
InsertRowStyle

TableItemStyle 컨트롤이 삽입 모드에 있을 때 DetailsView 컨트롤에 있는 데이터 행의 모양을 설정하는 데 사용할 수 있는 DetailsView 개체에 대한 참조를 가져옵니다.

IsBoundUsingDataSourceID

DataSourceID 속성이 설정되었는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 BaseDataBoundControl)
IsChildControlStateCleared

이 컨트롤에 포함된 컨트롤이 컨트롤 상태를 가지는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Control)
IsDataBindingAutomatic

데이터 바인딩이 자동인지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 BaseDataBoundControl)
IsEnabled

컨트롤을 사용할 수 있는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 WebControl)
IsTrackingViewState

서버 컨트롤에서 해당 뷰 상태의 변경 사항을 저장하는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Control)
IsUsingModelBinders

모델 바인딩을 사용하는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 CompositeDataBoundControl)
IsViewStateEnabled

이 컨트롤의 뷰 상태를 사용할 수 있는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Control)
ItemType

강력한 형식의 데이터 바인딩에 대한 데이터 항목의 이름을 가져오거나 설정합니다.

(다음에서 상속됨 DataBoundControl)
LoadViewStateByID

인덱스 대신 ID별로 뷰 상태를 로드할 때 컨트롤이 참여하는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Control)
NamingContainer

동일한 ID 속성 값을 사용하는 서버 컨트롤을 구별하기 위해 고유의 네임스페이스를 만드는 서버 컨트롤의 명명 컨테이너에 대한 참조를 가져옵니다.

(다음에서 상속됨 Control)
Page

서버 컨트롤이 들어 있는 Page 인스턴스에 대한 참조를 가져옵니다.

(다음에서 상속됨 Control)
PageCount

데이터 소스의 레코드 수를 가져옵니다.

PageIndex

표시된 레코드의 인덱스를 가져오거나 설정합니다.

PagerSettings

PagerSettings 컨트롤에 있는 페이저 단추의 속성을 설정하는 데 사용할 수 있는 DetailsView 개체에 대한 참조를 가져옵니다.

PagerStyle

TableItemStyle 컨트롤에 있는 페이저 행의 모양을 설정하는 데 사용할 수 있는 DetailsView 개체에 대한 참조를 가져옵니다.

PagerTemplate

DetailsView 컨트롤의 페이저 행에 대한 사용자 지정 콘텐츠를 가져오거나 설정합니다.

Parent

페이지 컨트롤 계층 구조에서 서버 컨트롤의 부모 컨트롤에 대한 참조를 가져옵니다.

(다음에서 상속됨 Control)
RenderingCompatibility

렌더링된 HTML이 호환될 ASP.NET 버전을 지정하는 값을 가져옵니다.

(다음에서 상속됨 Control)
RequiresDataBinding

DataBind() 메서드를 호출해야 할지 여부를 나타내는 값을 가져오거나 설정합니다.

(다음에서 상속됨 BaseDataBoundControl)
Rows

DetailsViewRow 컨트롤의 데이터 행을 나타내는 DetailsView 개체의 컬렉션을 가져옵니다.

RowsGenerator

뷰에서 행을 자동으로 채우려면 IAutoFieldGenerator 인터페이스를 구현하는 개체를 가져오거나 설정합니다.

RowStyle

TableItemStyle 컨트롤에 있는 데이터 행의 모양을 설정하는 데 사용할 수 있는 DetailsView 개체에 대한 참조를 가져옵니다.

SelectArguments

데이터 바인딩된 컨트롤이 데이터 소스 컨트롤에서 데이터를 검색할 때 사용하는 DataSourceSelectArguments 개체를 가져옵니다.

(다음에서 상속됨 DataBoundControl)
SelectedValue

DetailsView 컨트롤에서 현재 레코드의 데이터 키 값을 가져옵니다.

SelectMethod

데이터를 읽기 위해 호출할 메서드의 이름입니다.

(다음에서 상속됨 DataBoundControl)
Site

디자인 화면에서 렌더링될 때 현재 컨트롤을 호스팅하는 컨테이너 관련 정보를 가져옵니다.

(다음에서 상속됨 Control)
SkinID

컨트롤에 적용할 스킨을 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
Style

웹 서버 컨트롤의 외부 태그에서 스타일 특성으로 렌더링할 텍스트 특성의 컬렉션을 가져옵니다.

(다음에서 상속됨 WebControl)
SupportsDisabledAttribute

컨트롤의 IsEnabled 속성이 false인 경우 컨트롤이 렌더링된 HTML 요소의 disabled 특성을 "disabled"로 설정할지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 BaseDataBoundControl)
TabIndex

웹 서버 컨트롤의 탭 인덱스를 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
TagKey

HtmlTextWriterTag 컨트롤에 대한 DetailsView 값을 가져옵니다.

TagName

컨트롤 태그의 이름을 가져옵니다. 이 속성은 주로 컨트롤 개발자가 사용합니다.

(다음에서 상속됨 WebControl)
TemplateControl

이 컨트롤이 포함된 템플릿의 참조를 가져오거나 설정합니다.

(다음에서 상속됨 Control)
TemplateSourceDirectory

Page 또는 현재 서버 컨트롤이 들어 있는 UserControl의 가상 디렉터리를 가져옵니다.

(다음에서 상속됨 Control)
ToolTip

마우스 포인터를 웹 서버 컨트롤 위로 가져갈 때 표시되는 텍스트를 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
TopPagerRow

DetailsViewRow 컨트롤의 위쪽 페이저 행을 나타내는 DetailsView 개체를 가져옵니다.

UniqueID

서버 컨트롤에 대해 계층적으로 정규화된 고유 식별자를 가져옵니다.

(다음에서 상속됨 Control)
UpdateMethod

컨트롤이 업데이트 작업을 수행하는 경우 호출되는 페이지의 메서드에 대한 이름을 가져오거나 설정합니다.

UpdateMethod

데이터를 업데이트하기 위해 호출할 메서드의 이름을 가져오거나 설정합니다.

(다음에서 상속됨 CompositeDataBoundControl)
ValidateRequestMode

잠재적으로 위험한 값이 있는지 확인하기 위해 컨트롤에서 브라우저의 클라이언트 입력을 검사하는지 여부를 나타내는 값을 가져오거나 설정합니다.

(다음에서 상속됨 Control)
ViewState

같은 페이지에 대한 여러 개의 요청 전반에 서버 컨트롤의 뷰 상태를 저장하고 복원할 수 있도록 하는 상태 정보 사전을 가져옵니다.

(다음에서 상속됨 Control)
ViewStateIgnoresCase

StateBag 개체가 대/소문자를 구분하는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Control)
ViewStateMode

이 컨트롤의 뷰 상태 모드를 가져오거나 설정합니다.

(다음에서 상속됨 Control)
Visible

페이지에서 서버 컨트롤이 UI로 렌더링되는지 여부를 나타내는 값을 가져오거나 설정합니다.

(다음에서 상속됨 Control)
Width

웹 서버 컨트롤의 너비를 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)

메서드

AddAttributesToRender(HtmlTextWriter)

지정된 HtmlTextWriterTag에 렌더링되어야 하는 HTML 특성 및 스타일을 추가합니다. 이 메서드는 주로 컨트롤 개발자에 의해 사용됩니다.

(다음에서 상속됨 WebControl)
AddedControl(Control, Int32)

자식 컨트롤이 Control 개체의 Controls 컬렉션에 추가된 후 호출됩니다.

(다음에서 상속됨 Control)
AddParsedSubObject(Object)

XML 또는 HTML 요소가 구문 분석되었음을 서버 컨트롤에 알리고 서버 컨트롤의 ControlCollection 개체에 요소를 추가합니다.

(다음에서 상속됨 Control)
ApplyStyle(Style)

지정된 스타일의 비어 있지 않은 요소를 웹 컨트롤에 복사하고 컨트롤의 기존 스타일 요소를 덮어씁니다. 이 메서드는 주로 컨트롤 개발자가 사용합니다.

(다음에서 상속됨 WebControl)
ApplyStyleSheetSkin(Page)

페이지 스타일시트에 정의된 스타일 속성을 컨트롤에 적용합니다.

(다음에서 상속됨 Control)
BeginRenderTracing(TextWriter, Object)

렌더링 데이터의 디자인 타임 추적을 시작합니다.

(다음에서 상속됨 Control)
BuildProfileTree(String, Boolean)

서버 컨트롤에 대한 정보를 수집하고, 페이지에 대해 추적이 활성화된 경우 표시할 Trace 속성에 이 정보를 전달합니다.

(다음에서 상속됨 Control)
ChangeMode(DetailsViewMode)

DetailsView 컨트롤을 지정한 모드로 전환합니다.

ClearCachedClientID()

캐시된 ClientID 값을 null로 설정합니다.

(다음에서 상속됨 Control)
ClearChildControlState()

서버 컨트롤의 자식 컨트롤에 대한 컨트롤 상태 정보를 삭제합니다.

(다음에서 상속됨 Control)
ClearChildState()

서버 컨트롤의 모든 자식 컨트롤에 대한 뷰 상태 정보와 컨트롤 상태 정보를 삭제합니다.

(다음에서 상속됨 Control)
ClearChildViewState()

서버 컨트롤의 모든 자식 컨트롤에 대한 뷰 상태 정보를 삭제합니다.

(다음에서 상속됨 Control)
ClearEffectiveClientIDMode()

현재 컨트롤 인스턴스 및 자식 컨트롤의 ClientIDMode 속성을 Inherit로 설정합니다.

(다음에서 상속됨 Control)
ConfirmInitState()

데이터 바인딩된 컨트롤의 초기화 상태를 설정합니다.

(다음에서 상속됨 BaseDataBoundControl)
CopyBaseAttributes(WebControl)

Style 개체에 캡슐화하지 않은 속성을 지정된 웹 서버 컨트롤에서 이 메서드가 호출된 원본 웹 서버 컨트롤에 복사합니다. 이 메서드는 주로 컨트롤 개발자에 의해 사용됩니다.

(다음에서 상속됨 WebControl)
CreateAutoGeneratedRow(AutoGeneratedFieldProperties)

지정한 필드 속성을 사용하여 자동으로 생성된 행 필드를 나타내는 AutoGeneratedField 개체를 만듭니다.

CreateAutoGeneratedRows(Object)

지정한 데이터 항목에 대해 자동으로 생성된 행 필드 집합을 만듭니다.

CreateChildControls()

뷰 상태에 저장된 값에 따라 데이터 바인딩된 합성 컨트롤을 렌더링하는 데 사용할 컨트롤 계층 구조를 만듭니다.

(다음에서 상속됨 CompositeDataBoundControl)
CreateChildControls(IEnumerable, Boolean)

DetailsView 컨트롤을 렌더링하는 데 사용할 컨트롤 계층 구조를 만듭니다.

CreateControlCollection()

서버 컨트롤의 자식 컨트롤(리터럴 및 서버)을 보유할 새 ControlCollection 개체를 만듭니다.

(다음에서 상속됨 Control)
CreateControlStyle()

DetailsView 컨트롤에 대한 기본 테이블 스타일 개체를 만듭니다.

CreateDataSourceSelectArguments()

Select 명령에 전달되는 DataSourceSelectArguments 개체를 만듭니다.

CreateFieldSet(Object, Boolean)

컨트롤 계층 구조를 생성하는 데 사용되는 자동으로 생성된 행 필드와 사용자 정의 행 필드의 전체 집합을 만듭니다.

CreateRow(Int32, DataControlRowType, DataControlRowState)

지정된 항목 인덱스, 행 형식, 행 상태를 사용하여 DetailsViewRow 개체를 만듭니다.

CreateTable()

DetailsView 컨트롤을 포함하는 테이블을 만듭니다.

DataBind()

기본 클래스의 DataBind() 메서드를 호출합니다.

DataBind(Boolean)

DataBinding 이벤트를 발생시키는 옵션을 사용하여, 호출된 서버 컨트롤과 모든 자식 컨트롤에 데이터 소스를 바인딩합니다.

(다음에서 상속됨 Control)
DataBindChildren()

데이터 소스를 서버 컨트롤의 자식 컨트롤에 바인딩합니다.

(다음에서 상속됨 Control)
DeleteItem()

데이터 소스에서 현재 레코드를 삭제합니다.

Dispose()

서버 컨트롤이 메모리에서 해제되기 전에 해당 서버 컨트롤에서 최종 정리 작업을 수행하도록 합니다.

(다음에서 상속됨 Control)
EndRenderTracing(TextWriter, Object)

렌더링 데이터의 디자인 타임 추적을 종료합니다.

(다음에서 상속됨 Control)
EnsureChildControls()

서버 컨트롤에 자식 컨트롤이 있는지 확인합니다. 서버 컨트롤에 자식 컨트롤이 없으면 자식 컨트롤을 만듭니다.

(다음에서 상속됨 Control)
EnsureDataBound()

데이터 목록 컨트롤에 데이터 바인딩이 필요하고 올바른 데이터 소스 컨트롤이 지정되었는지 여부를 확인한 후에 DataBind() 메서드를 호출합니다.

EnsureID()

ID가 할당되지 않은 컨트롤의 ID를 만듭니다.

(다음에서 상속됨 Control)
Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
ExtractRowValues(IOrderedDictionary, Boolean, Boolean)

표시된 각 필드 값을 검색하여 지정한 IOrderedDictionary 개체에 저장합니다.

FindControl(String)

지정된 id 매개 변수를 사용하여 서버 컨트롤의 현재 명명 컨테이너를 검색합니다.

(다음에서 상속됨 Control)
FindControl(String, Int32)

현재 명명 컨테이너에서 특정 id와 함께 pathOffset 매개 변수에 지정된 검색용 정수를 사용하여 서버 컨트롤을 검색합니다. 이 버전의 FindControl 메서드를 재정의해서는 안됩니다.

(다음에서 상속됨 Control)
Focus()

컨트롤에 입력 포커스를 설정합니다.

(다음에서 상속됨 Control)
GetCallbackResult()

컨트롤을 대상으로 하는 콜백 이벤트의 결과를 반환합니다.

GetCallbackScript(IButtonControl, String)

지정한 인수를 사용하여 만든 콜백 문자열을 반환합니다.

GetData()

데이터 바인딩된 컨트롤에서 데이터 작업을 수행하는 데 사용하는 DataSourceView 개체를 검색합니다.

(다음에서 상속됨 DataBoundControl)
GetDataSource()

데이터 바인딩된 컨트롤이 연결된 IDataSource 인터페이스가 있는 경우 해당 인터페이스를 검색합니다.

(다음에서 상속됨 DataBoundControl)
GetDesignModeState()

컨트롤의 디자인 타임 데이터를 가져옵니다.

(다음에서 상속됨 Control)
GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetRouteUrl(Object)

루트 매개 변수 집합에 해당하는 URL을 가져옵니다.

(다음에서 상속됨 Control)
GetRouteUrl(RouteValueDictionary)

루트 매개 변수 집합에 해당하는 URL을 가져옵니다.

(다음에서 상속됨 Control)
GetRouteUrl(String, Object)

루트 매개 변수 집합 및 루트 이름에 해당하는 URL을 가져옵니다.

(다음에서 상속됨 Control)
GetRouteUrl(String, RouteValueDictionary)

루트 매개 변수 집합 및 루트 이름에 해당하는 URL을 가져옵니다.

(다음에서 상속됨 Control)
GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
GetUniqueIDRelativeTo(Control)

지정된 컨트롤의 UniqueID 속성에서 접두사 부분을 반환합니다.

(다음에서 상속됨 Control)
HasControls()

서버 컨트롤에 자식 컨트롤이 있는지 확인합니다.

(다음에서 상속됨 Control)
HasEvents()

이벤트가 컨트롤이나 자식 컨트롤에 등록되었는지 여부를 나타내는 값을 반환합니다.

(다음에서 상속됨 Control)
InitializePager(DetailsViewRow, PagedDataSource)

DetailsView 컨트롤에 대한 페이저 행을 만듭니다.

InitializeRow(DetailsViewRow, DataControlField)

지정된 DetailsViewRow 개체를 초기화합니다.

InsertItem(Boolean)

데이터 소스에 현재 레코드를 삽입합니다.

IsBindableType(Type)

지정된 데이터 형식을 DetailsView 컨트롤의 필드에 바인딩할 수 있는지 여부를 나타냅니다.

IsLiteralContent()

서버 컨트롤에 리터럴 내용만 저장되어 있는지 확인합니다.

(다음에서 상속됨 Control)
LoadControlState(Object)

DetailsView 속성이 false로 설정되어 있는 경우에도 유지해야 하는 EnableViewState 컨트롤의 속성 상태를 로드합니다.

LoadViewState(Object)

이전에 저장된 DetailsView 컨트롤의 뷰 상태를 로드합니다.

MapPathSecure(String)

가상 경로(절대 또는 상대)가 매핑되는 실제 경로를 가져옵니다.

(다음에서 상속됨 Control)
MarkAsDataBound()

뷰 상태의 컨트롤 상태를 데이터에 바인딩된 상태로 설정합니다.

(다음에서 상속됨 DataBoundControl)
MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
MergeStyle(Style)

지정된 스타일의 비어 있지 않은 요소를 웹 컨트롤에 복사하지만 컨트롤의 기존 요소를 덮어쓰지 않습니다. 이 메서드는 주로 컨트롤 개발자에 의해 사용됩니다.

(다음에서 상속됨 WebControl)
OnBubbleEvent(Object, EventArgs)

웹 서버 컨트롤의 이벤트가 페이지의 UI 서버 컨트롤 계층 구조로 전달되었는지 여부를 확인합니다.

OnCreatingModelDataSource(CreatingModelDataSourceEventArgs)

CreatingModelDataSource 이벤트를 발생시킵니다.

(다음에서 상속됨 DataBoundControl)
OnDataBinding(EventArgs)

DataBinding 이벤트를 발생시킵니다.

(다음에서 상속됨 Control)
OnDataBound(EventArgs)

DataBound 이벤트를 발생시킵니다.

(다음에서 상속됨 BaseDataBoundControl)
OnDataPropertyChanged()

기본 데이터 소스 식별 속성 중 하나가 변경된 후 데이터 바인딩된 컨트롤을 해당 데이터에 다시 바인딩합니다.

(다음에서 상속됨 DataBoundControl)
OnDataSourceViewChanged(Object, EventArgs)

DataSourceViewChanged 이벤트를 발생시킵니다.

OnInit(EventArgs)

Init 이벤트를 발생시킵니다.

OnItemCommand(DetailsViewCommandEventArgs)

ItemCommand 이벤트를 발생시킵니다.

OnItemCreated(EventArgs)

ItemCreated 이벤트를 발생시킵니다.

OnItemDeleted(DetailsViewDeletedEventArgs)

ItemDeleted 이벤트를 발생시킵니다.

OnItemDeleting(DetailsViewDeleteEventArgs)

ItemDeleting 이벤트를 발생시킵니다.

OnItemInserted(DetailsViewInsertedEventArgs)

ItemInserted 이벤트를 발생시킵니다.

OnItemInserting(DetailsViewInsertEventArgs)

ItemInserting 이벤트를 발생시킵니다.

OnItemUpdated(DetailsViewUpdatedEventArgs)

ItemUpdated 이벤트를 발생시킵니다.

OnItemUpdating(DetailsViewUpdateEventArgs)

ItemUpdating 이벤트를 발생시킵니다.

OnLoad(EventArgs)

Load 이벤트를 처리합니다.

(다음에서 상속됨 DataBoundControl)
OnModeChanged(EventArgs)

ModeChanged 이벤트를 발생시킵니다.

OnModeChanging(DetailsViewModeEventArgs)

ModeChanging 이벤트를 발생시킵니다.

OnPageIndexChanged(EventArgs)

PageIndexChanged 이벤트를 발생시킵니다.

OnPageIndexChanging(DetailsViewPageEventArgs)

PageIndexChanging 이벤트를 발생시킵니다.

OnPagePreLoad(Object, EventArgs)

컨트롤이 로드되기 전에 데이터 바인딩된 컨트롤의 초기화된 상태를 설정합니다.

OnPreRender(EventArgs)

PreRender 이벤트를 발생시킵니다.

OnUnload(EventArgs)

Unload 이벤트를 발생시킵니다.

(다음에서 상속됨 Control)
OpenFile(String)

파일을 읽는 데 사용되는 Stream을 가져옵니다.

(다음에서 상속됨 Control)
PerformDataBinding(IEnumerable)

DetailsView 컨트롤에 지정된 데이터 소스를 바인딩합니다.

PerformSelect()

연결된 데이터 원본에서 데이터를 검색합니다.

(다음에서 상속됨 DataBoundControl)
PrepareControlHierarchy()

DetailsView 컨트롤의 컨트롤 계층 구조를 설정합니다.

RaiseBubbleEvent(Object, EventArgs)

이벤트 소스와 해당 정보를 컨트롤의 부모 컨트롤에 할당합니다.

(다음에서 상속됨 Control)
RaiseCallbackEvent(String)

GetCallbackEventReference 메서드의 콜백 처리기에 대한 인수를 만듭니다.

RaisePostBackEvent(String)

서버에 다시 게시될 때 DetailsView 컨트롤에 대한 적절한 이벤트를 발생시킵니다.

RemovedControl(Control)

자식 컨트롤이 Control 개체의 Controls 컬렉션에서 제거된 후 호출됩니다.

(다음에서 상속됨 Control)
Render(HtmlTextWriter)

지정한 DetailsView 개체를 사용하여 클라이언트에 HtmlTextWriter 컨트롤을 표시합니다.

RenderBeginTag(HtmlTextWriter)

지정된 작성기에 컨트롤의 HTML 여는 태그를 렌더링합니다. 이 메서드는 주로 컨트롤 개발자에 의해 사용됩니다.

(다음에서 상속됨 WebControl)
RenderChildren(HtmlTextWriter)

클라이언트에서 렌더링될 내용을 쓰는 제공된 HtmlTextWriter 개체에 서버 컨트롤 자식의 내용을 출력합니다.

(다음에서 상속됨 Control)
RenderContents(HtmlTextWriter)

지정된 작성기에 컨트롤의 내용을 렌더링합니다. 이 메서드는 주로 컨트롤 개발자에 의해 사용됩니다.

(다음에서 상속됨 WebControl)
RenderControl(HtmlTextWriter)

제공된 HtmlTextWriter 개체로 서버 컨트롤 콘텐츠를 출력하고 추적을 사용하는 경우 컨트롤에 대한 추적 정보를 저장합니다.

(다음에서 상속됨 Control)
RenderControl(HtmlTextWriter, ControlAdapter)

제공된 HtmlTextWriter 개체를 사용하여 제공된 ControlAdapter 개체에 서버 컨트롤 콘텐츠를 출력합니다.

(다음에서 상속됨 Control)
RenderEndTag(HtmlTextWriter)

지정된 작성기에 컨트롤의 HTML 닫는 태그를 렌더링합니다. 이 메서드는 주로 컨트롤 개발자에 의해 사용됩니다.

(다음에서 상속됨 WebControl)
ResolveAdapter()

지정된 컨트롤을 렌더링하는 컨트롤 어댑터를 가져옵니다.

(다음에서 상속됨 Control)
ResolveClientUrl(String)

브라우저에 사용할 수 있는 URL을 가져옵니다.

(다음에서 상속됨 Control)
ResolveUrl(String)

URL을 요청 클라이언트에서 사용할 수 있는 URL로 변환합니다.

(다음에서 상속됨 Control)
SaveControlState()

DetailsView 속성이 false로 설정되어 있는 경우에도 유지해야 하는 EnableViewState 컨트롤의 속성 상태를 저장합니다.

SaveViewState()

DetailsView 컨트롤의 현재 뷰 상태를 저장합니다.

SetDesignModeState(IDictionary)

컨트롤에 대한 디자인 타임 데이터를 설정합니다.

(다음에서 상속됨 Control)
SetPageIndex(Int32)

DetailsView 컨트롤에 현재 표시된 페이지의 인덱스를 설정합니다.

SetRenderMethodDelegate(RenderMethod)

이벤트 처리기 대리자를 할당하여 서버 컨트롤과 그 콘텐츠를 부모 컨트롤로 렌더링합니다.

(다음에서 상속됨 Control)
SetTraceData(Object, Object)

추적 데이터 키와 추적 데이터 값을 사용하여 렌더링 데이터의 디자인 타임 추적을 위한 추적 데이터를 설정합니다.

(다음에서 상속됨 Control)
SetTraceData(Object, Object, Object)

추적 개체, 추적 데이터 키와 추적 데이터 값을 사용하여 렌더링 데이터의 디자인 타임 추적을 위한 추적 데이터를 설정합니다.

(다음에서 상속됨 Control)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)
TrackViewState()

DetailsView 컨트롤의 뷰 상태 변경 사항을 추적하고 저장하기 시작하는 시작 지점을 표시합니다.

UpdateItem(Boolean)

데이터 소스의 현재 레코드를 업데이트합니다.

ValidateDataSource(Object)

데이터 바인딩된 컨트롤에 바인딩할 개체가 함께 동작 가능한 개체인지 확인합니다.

(다음에서 상속됨 DataBoundControl)

이벤트

CallingDataMethods

데이터 메서드가 호출될 때 발생 합니다.

(다음에서 상속됨 DataBoundControl)
CreatingModelDataSource

ModelDataSource 개체를 만드는 중이면 발생합니다.

(다음에서 상속됨 DataBoundControl)
DataBinding

서버 컨트롤에서 데이터 소스에 바인딩할 때 발생합니다.

(다음에서 상속됨 Control)
DataBound

서버 컨트롤이 데이터 소스에 바인딩된 후에 발생합니다.

(다음에서 상속됨 BaseDataBoundControl)
Disposed

ASP.NET 페이지가 요청될 때 서버 컨트롤 주기의 마지막 단계로 서버 컨트롤이 메모리에서 해제될 때 발생합니다.

(다음에서 상속됨 Control)
Init

서버 컨트롤 주기의 첫 단계로 서버 컨트롤을 초기화할 때 이 이벤트가 발생합니다.

(다음에서 상속됨 Control)
ItemCommand

DetailsView 컨트롤의 단추를 클릭하면 이 이벤트가 발생합니다.

ItemCreated

DetailsView 컨트롤에서 레코드가 만들어질 때 이 이벤트가 발생합니다.

ItemDeleted

DetailsView 컨트롤의 삭제 단추를 클릭하면 삭제 작업 후에 이 이벤트가 발생합니다.

ItemDeleting

DetailsView 컨트롤의 삭제 단추를 클릭하면 삭제 작업 전에 이 이벤트가 발생합니다.

ItemInserted

DetailsView 컨트롤의 삽입 단추를 클릭하면 삽입 작업 후에 이 이벤트가 발생합니다.

ItemInserting

DetailsView 컨트롤의 삽입 단추를 클릭하면 삽입 작업 전에 이 이벤트가 발생합니다.

ItemUpdated

DetailsView 컨트롤의 업데이트 단추를 클릭하면 업데이트 작업 후에 이 이벤트가 발생합니다.

ItemUpdating

DetailsView 컨트롤의 업데이트 단추를 클릭하면 업데이트 작업 전에 이 이벤트가 발생합니다.

Load

Page 개체에 서버 컨트롤을 로드할 때 발생합니다.

(다음에서 상속됨 Control)
ModeChanged

DetailsView 컨트롤 모드를 편집, 삽입 및 읽기 전용 모드 사이에서 변경하려 하면 CurrentMode 속성이 업데이트된 후에 이 이벤트가 발생합니다.

ModeChanging

DetailsView 컨트롤 모드를 편집, 삽입 및 읽기 전용 모드 사이에서 변경하려 하면 CurrentMode 속성이 업데이트되기 전에 이 이벤트가 발생합니다.

PageIndexChanged

PageIndex 속성 값이 변경될 때 페이징 작업 후에 발생합니다.

PageIndexChanging

PageIndex 속성 값이 변경될 때 페이징 작업 이전에 발생합니다.

PreRender

Control 개체가 로드된 후, 렌더링 전에 발생합니다.

(다음에서 상속됨 Control)
Unload

서버 컨트롤이 메모리에서 언로드될 때 발생합니다.

(다음에서 상속됨 Control)

명시적 인터페이스 구현

IAttributeAccessor.GetAttribute(String)

지정한 이름이 있는 웹 컨트롤의 특성을 가져옵니다.

(다음에서 상속됨 WebControl)
IAttributeAccessor.SetAttribute(String, String)

웹 컨트롤의 특성을 지정한 이름과 값으로 설정합니다.

(다음에서 상속됨 WebControl)
ICallbackContainer.GetCallbackScript(IButtonControl, String)

DetailsView 컨트롤에 대한 콜백 스크립트를 만듭니다.

ICallbackEventHandler.GetCallbackResult()

GetCallbackResult() 메서드를 참조하십시오.

ICallbackEventHandler.RaiseCallbackEvent(String)

지정된 인수를 사용하여 콜백 이벤트를 발생시킵니다.

IControlBuilderAccessor.ControlBuilder

이 멤버에 대한 설명은 ControlBuilder를 참조하세요.

(다음에서 상속됨 Control)
IControlDesignerAccessor.GetDesignModeState()

이 멤버에 대한 설명은 GetDesignModeState()를 참조하세요.

(다음에서 상속됨 Control)
IControlDesignerAccessor.SetDesignModeState(IDictionary)

이 멤버에 대한 설명은 SetDesignModeState(IDictionary)를 참조하세요.

(다음에서 상속됨 Control)
IControlDesignerAccessor.SetOwnerControl(Control)

이 멤버에 대한 설명은 SetOwnerControl(Control)를 참조하세요.

(다음에서 상속됨 Control)
IControlDesignerAccessor.UserData

이 멤버에 대한 설명은 UserData를 참조하세요.

(다음에서 상속됨 Control)
IDataBindingsAccessor.DataBindings

이 멤버에 대한 설명은 DataBindings를 참조하세요.

(다음에서 상속됨 Control)
IDataBindingsAccessor.HasDataBindings

이 멤버에 대한 설명은 HasDataBindings를 참조하세요.

(다음에서 상속됨 Control)
IDataBoundControl.DataKeyNames

이 속성에 대한 설명은 DataKeyNames를 참조하십시오.

IDataBoundControl.DataMember

이 속성에 대한 설명은 DataMember를 참조하십시오.

IDataBoundControl.DataSource

이 속성에 대한 설명은 DataSource를 참조하십시오.

IDataBoundControl.DataSourceID

이 속성에 대한 설명은 DataSourceID를 참조하십시오.

IDataBoundControl.DataSourceObject

이 속성에 대한 설명은 DataSourceObject를 참조하십시오.

IDataBoundItemControl.DataKey

이 속성에 대한 설명은 DataKey를 참조하십시오.

IDataBoundItemControl.Mode

이 속성에 대한 설명은 Mode를 참조하십시오.

IDataItemContainer.DataItemIndex

이 멤버에 대한 설명은 DataItemIndex를 참조하세요.

IDataItemContainer.DisplayIndex

이 멤버에 대한 설명은 DisplayIndex를 참조하세요.

IExpressionsAccessor.Expressions

이 멤버에 대한 설명은 Expressions를 참조하세요.

(다음에서 상속됨 Control)
IExpressionsAccessor.HasExpressions

이 멤버에 대한 설명은 HasExpressions를 참조하세요.

(다음에서 상속됨 Control)
IFieldControl.FieldsGenerator

이 속성에 대한 설명은 FieldsGenerator를 참조하십시오.

IParserAccessor.AddParsedSubObject(Object)

이 멤버에 대한 설명은 AddParsedSubObject(Object)를 참조하세요.

(다음에서 상속됨 Control)
IPostBackContainer.GetPostBackOptions(IButtonControl)

이 멤버에 대한 설명은 GetPostBackOptions(IButtonControl)를 참조하세요.

IPostBackEventHandler.RaisePostBackEvent(String)

이 멤버에 대한 설명은 RaisePostBackEvent(String)를 참조하세요.

확장 메서드

EnablePersistedSelection(BaseDataBoundControl)
사용되지 않음.

선택 및 페이징을 지원하는 데이터 컨트롤에서 선택 영역이 유지되도록 합니다.

FindDataSourceControl(Control)

지정된 컨트롤에 대한 데이터 컨트롤에 연결된 데이터 소스를 반환합니다.

FindFieldTemplate(Control, String)

지정된 컨트롤의 명명 컨테이너에서 지정된 열에 대한 필드 템플릿을 반환합니다.

FindMetaTable(Control)

상위 데이터 컨트롤에 대한 메타테이블 개체를 반환합니다.

GetDefaultValues(INamingContainer)

지정된 데이터 컨트롤의 기본값에 대한 컬렉션을 가져옵니다.

GetMetaTable(INamingContainer)

지정한 데이터 컨트롤에 대한 테이블 메타데이터를 가져옵니다.

SetMetaTable(INamingContainer, MetaTable)

지정한 데이터 컨트롤에 대한 테이블 메타데이터를 설정합니다.

SetMetaTable(INamingContainer, MetaTable, IDictionary<String,Object>)

지정된 데이터 컨트롤에 대한 테이블 메타데이터 및 기본값 매핑을 설정합니다.

SetMetaTable(INamingContainer, MetaTable, Object)

지정된 데이터 컨트롤에 대한 테이블 메타데이터 및 기본값 매핑을 설정합니다.

TryGetMetaTable(INamingContainer, MetaTable)

테이블 메타데이터를 사용할 수 있는지 여부를 결정합니다.

EnableDynamicData(INamingContainer, Type)

지정된 데이터 컨트롤에 Dynamic Data 동작을 사용하도록 설정합니다.

EnableDynamicData(INamingContainer, Type, IDictionary<String,Object>)

지정된 데이터 컨트롤에 Dynamic Data 동작을 사용하도록 설정합니다.

EnableDynamicData(INamingContainer, Type, Object)

지정된 데이터 컨트롤에 Dynamic Data 동작을 사용하도록 설정합니다.

적용 대상

추가 정보