|
Tento článek byl přeložen strojově počítačem. Původní text zobrazíte přesunutím ukazatele myši nad jednotlivé věty článku. Další informace
|
Překlad
Originál
|
BoundField – třída
System.Web.UI.WebControls.DataControlField
System.Web.UI.WebControls.BoundField
System.Web.UI.WebControls.AutoGeneratedField
System.Web.UI.WebControls.CheckBoxField
Obor názvů: System.Web.UI.WebControls
Sestavení: System.Web (v System.Web.dll)
Typ BoundField zveřejňuje následující členy.
| Název | Popis | |
|---|---|---|
![]() | AccessibleHeaderText | |
![]() | ApplyFormatInEditMode | |
![]() | Control | |
![]() | ControlStyle | |
![]() | ConvertEmptyStringToNull | |
![]() | DataField | |
![]() | DataFormatString | |
![]() | DesignMode | |
![]() | FooterStyle | |
![]() | FooterText | |
![]() | HeaderImageUrl | |
![]() | HeaderStyle | |
![]() | HeaderText | |
![]() | HtmlEncode | |
![]() | HtmlEncodeFormatString | |
![]() | InsertVisible | |
![]() | IsTrackingViewState | |
![]() | ItemStyle | |
![]() | NullDisplayText | |
![]() | ReadOnly | |
![]() | ShowHeader | |
![]() | SortExpression | |
![]() | SupportsHtmlEncode | |
![]() | ValidateRequestMode | |
![]() | ViewState | |
![]() | Visible |
| Název | Popis | |
|---|---|---|
![]() | CloneField | Infrastruktura. |
![]() | CopyProperties | |
![]() | CreateField | |
![]() | Equals(Object) | |
![]() | ExtractValuesFromCell | |
![]() | Finalize | Umožňuje objektu pokusit se uvolnit prostředky a provést další operace vyčištění předtím, než je odstraněn při uvolňování paměti. |
![]() | FormatDataValue | |
![]() | GetDesignTimeValue | |
![]() | GetHashCode | |
![]() | GetType | |
![]() | GetValue | |
![]() | Initialize | |
![]() | InitializeCell | |
![]() | InitializeDataCell | |
![]() | LoadViewState | |
![]() | MemberwiseClone | |
![]() | OnDataBindField | |
![]() | OnFieldChanged | |
![]() | SaveViewState | |
![]() | ToString | |
![]() | TrackViewState | |
![]() | ValidateSupportsCallback |
| Název | Popis | |
|---|---|---|
![]() ![]() | IDataSourceViewSchemaAccessor.DataSourceViewSchema | Infrastruktura. |
![]() ![]() | IStateManager.IsTrackingViewState | Infrastruktura. |
![]() ![]() | IStateManager.LoadViewState | Infrastruktura. |
![]() ![]() | IStateManager.SaveViewState | Infrastruktura. |
![]() ![]() | IStateManager.TrackViewState | Infrastruktura. |
Poznámka |
|---|
<%@ 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>BoundField Example</title> </head> <body> <form id="form1" runat="server"> <h3>BoundField Example</h3> <asp:gridview id="CustomersGridView" datasourceid="CustomersSqlDataSource" autogeneratecolumns="false" autogenerateeditbutton="true" allowpaging="true" datakeynames="CustomerID" runat="server"> <columns> <asp:boundfield datafield="CustomerID" readonly="true" headertext="Customer ID"/> <asp:boundfield datafield="CompanyName" convertemptystringtonull="true" headertext="Customer Name"/> <asp:boundfield datafield="Address" convertemptystringtonull="true" headertext="Address"/> <asp:boundfield datafield="City" convertemptystringtonull="true" headertext="City"/> <asp:boundfield datafield="PostalCode" convertemptystringtonull="true" headertext="ZIP Code"/> <asp:boundfield datafield="Country" convertemptystringtonull="true" headertext="Country"/> </columns> </asp:gridview> <!-- This example uses Microsoft SQL Server and connects --> <!-- to the Northwind sample database. Use an ASP.NET --> <!-- expression to retrieve the connection string value --> <!-- from the Web.config file. --> <asp:sqldatasource id="CustomersSqlDataSource" selectcommand="Select [CustomerID], [CompanyName], [Address], [City], [PostalCode], [Country] From [Customers]" updatecommand="Update Customers Set CompanyName=@CompanyName, Address=@Address, City=@City, PostalCode=@PostalCode, Country=@Country Where (CustomerID = @CustomerID)" connectionstring="<%$ ConnectionStrings:NorthWindConnectionString%>" runat="server"> </asp:sqldatasource> </form> </body> </html>
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (role Server Core není podporována), Windows Server 2008 R2 (role Server Core je podporována s aktualizací SP1 nebo novější, architektura Itanium není podporována)
.NET Framework nepodporuje některé verze platforem. Seznam podporovaných verzí naleznete v tématu Požadavky na systém rozhraní .NET framework.

