DynamicRouteExpression.ColumnName Property

Definition

Gets or sets the name of a column that contains a foreign key that is used to query the data source.

C#
public string ColumnName { get; set; }

Property Value

The name of the foreign-key column.

Examples

The following example shows how to specify the ProductCategory foreign-key column for filtering the products to display. This example is part of the larger example that is provided for the DynamicRouteExpression class.

<asp:QueryExtender TargetControlID="GridDataSource"   
    ID="GridQueryExtender" runat="server">  
  <asp:DynamicRouteExpression ColumnName="ProductCategory" />  
</asp:QueryExtender>  

Remarks

The ColumnName property represents a foreign key. This key is used to modify the query for the data source.

Applies to

Produkt Verze
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1