﻿<?xml version="1.0" encoding="utf-8"?><Type Name="DataGridColumn" FullName="System.Web.UI.WebControls.DataGridColumn"><TypeSignature Language="C#" Maintainer="auto" Value="public abstract class DataGridColumn : System.Web.UI.IStateManager" /><AssemblyInfo><AssemblyName>System.Web</AssemblyName><AssemblyPublicKey></AssemblyPublicKey><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo><ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the &lt;link location="node:gtk-sharp/programming/threads"&gt;Gtk# Thread Programming&lt;/link&gt; for details.</ThreadSafetyStatement><Base><BaseTypeName>System.Object</BaseTypeName></Base><Interfaces><Interface><InterfaceName>System.Web.UI.IStateManager</InterfaceName></Interface></Interfaces><Attributes><Attribute><AttributeName>System.ComponentModel.TypeConverter(typeof(System.ComponentModel.ExpandableObjectConverter))</AttributeName></Attribute></Attributes><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="T:System.Web.UI.WebControls.DataGridColumn" /> class is the base class for all column types of the <see cref="T:System.Web.UI.WebControls.DataGrid" /> control. It defines the properties and methods that are common to all column types. An instance of the <see cref="T:System.Web.UI.WebControls.DataGridColumn" /> class is not created directly.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Serves as the base class for the different column types of the <see cref="T:System.Web.UI.WebControls.DataGrid" /> control.</para></summary></Docs><Members><Member MemberName=".ctor"><MemberSignature Language="C#" Value="protected DataGridColumn ();" /><MemberType>Constructor</MemberType><ReturnValue /><Parameters /><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Use this constructor to create and initialize an instance of the <see cref="T:System.Web.UI.WebControls.DataGridColumn" /> class.</para><block subset="none" type="note"><para>Instances of this class are typically not created directly. It is a base class that defines the properties and methods common to all column type classes.</para></block></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.DataGridColumn" /> class.</para></summary></Docs><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="DesignMode"><MemberSignature Language="C#" Value="protected bool DesignMode { get; }" /><MemberType>Property</MemberType><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Docs><value>To be added: an object of type 'bool'</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Use the <see cref="P:System.Web.UI.WebControls.DataGridColumn.DesignMode" /> property to programmatically determine whether the column is in design mode.</para><para>For more information about design mode, see <see cref="P:System.ComponentModel.ISite.DesignMode" />.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets a value that indicates whether the column is in design mode.</para></summary></Docs><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="FooterStyle"><MemberSignature Language="C#" Value="public virtual System.Web.UI.WebControls.TableItemStyle FooterStyle { get; }" /><MemberType>Property</MemberType><ReturnValue><ReturnType>System.Web.UI.WebControls.TableItemStyle</ReturnType></ReturnValue><Docs><value>To be added: an object of type 'TableItemStyle'</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Use this property to provide a custom style for the footer section of the column. Common style attributes that can be adjusted include foreground color, background color, font, and content alignment within the cell. Providing a different style enhances the appearance of the column in the <see cref="T:System.Web.UI.WebControls.DataGrid" /> control.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the style properties for the footer section of the column.</para></summary></Docs><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo><Attributes><Attribute><AttributeName>System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)</AttributeName></Attribute><Attribute><AttributeName>System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)</AttributeName></Attribute><Attribute><AttributeName>System.ComponentModel.DefaultValue(null)</AttributeName></Attribute></Attributes></Member><Member MemberName="FooterText"><MemberSignature Language="C#" Value="public virtual string FooterText { set; get; }" /><MemberType>Property</MemberType><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Parameters /><Docs><value>To be added: an object of type 'string'</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Use the <see cref="P:System.Web.UI.WebControls.DataGridColumn.FooterText" /> property to specify or determine the text displayed in the footer section of the column.</para><block subset="none" type="note"><para>Text is not HTML-encoded before it is displayed in the footer section of the column. This makes it possible to embed script within HTML tags in the text. If this property is set dynamically using user input, be sure to validate the value to reduce security vulnerabilities.</para></block></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets or sets the text displayed in the footer section of the column.</para></summary></Docs><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo><Attributes><Attribute><AttributeName>System.ComponentModel.DefaultValue("")</AttributeName></Attribute></Attributes></Member><Member MemberName="HeaderImageUrl"><MemberSignature Language="C#" Value="public virtual string HeaderImageUrl { set; get; }" /><MemberType>Property</MemberType><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Parameters /><Docs><value>To be added: an object of type 'string'</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Use the <see cref="P:System.Web.UI.WebControls.DataGridColumn.HeaderImageUrl" /> property to specify the URL of an image to display in the header section of the column. You can use a relative or an absolute URL. A relative URL relates the location of the image to the location of the Web page without specifying a complete path on the server. The path is relative to the location of the Web page. This makes it easier to move the entire site to another directory on the server without updating the path to the image in code. An absolute URL provides the complete path, so moving the site to another directory requires updating the code.</para><block subset="none" type="note"><para>If you want to display text instead of an image in the header section of the column, set the <see cref="P:System.Web.UI.WebControls.DataGridColumn.HeaderText" /> property instead of this property.</para></block></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets or sets the location of an image to display in the header section of the column.</para></summary></Docs><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo><Attributes><Attribute><AttributeName>System.Web.UI.UrlProperty</AttributeName></Attribute><Attribute><AttributeName>System.ComponentModel.DefaultValue("")</AttributeName></Attribute></Attributes></Member><Member MemberName="HeaderStyle"><MemberSignature Language="C#" Value="public virtual System.Web.UI.WebControls.TableItemStyle HeaderStyle { get; }" /><MemberType>Property</MemberType><ReturnValue><ReturnType>System.Web.UI.WebControls.TableItemStyle</ReturnType></ReturnValue><Docs><value>To be added: an object of type 'TableItemStyle'</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Use this property to provide a custom style for the header section of the column. Common style attributes that can be adjusted include foreground color, background color, font, and content alignment within the cell. Providing a different style enhances the appearance of the column in the <see cref="T:System.Web.UI.WebControls.DataGrid" /> control.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the style properties for the header section of the column.</para></summary></Docs><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo><Attributes><Attribute><AttributeName>System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)</AttributeName></Attribute><Attribute><AttributeName>System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)</AttributeName></Attribute><Attribute><AttributeName>System.ComponentModel.DefaultValue(null)</AttributeName></Attribute></Attributes></Member><Member MemberName="HeaderText"><MemberSignature Language="C#" Value="public virtual string HeaderText { set; get; }" /><MemberType>Property</MemberType><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Parameters /><Docs><value>To be added: an object of type 'string'</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Use the <see cref="P:System.Web.UI.WebControls.DataGridColumn.HeaderText" /> property to specify or determine the text displayed in the header section of the column. If you want to display an image instead of text in the header section of the column, set the <see cref="P:System.Web.UI.WebControls.DataGridColumn.HeaderImageUrl" /> property instead of this property.</para><block subset="none" type="note"><para>Text is not HTML-encoded before it is displayed in the header section of the column. This makes it possible to embed script within HTML tags in the text. If this property is set dynamically using user input, be sure to validate the value to reduce security vulnerabilities.</para></block></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets or sets the text displayed in the header section of the column.</para></summary></Docs><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo><Attributes><Attribute><AttributeName>System.ComponentModel.DefaultValue("")</AttributeName></Attribute></Attributes></Member><Member MemberName="Initialize"><MemberSignature Language="C#" Value="public virtual void Initialize ();" /><MemberType>Method</MemberType><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters /><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="M:System.Web.UI.WebControls.DataGridColumn.Initialize" /> method provides the base implementation to reset a column derived from the <see cref="T:System.Web.UI.WebControls.DataGridColumn" /> class to its initial state. This method is not called directly. Instead, this method is inherited by a derived column class, which can then be used to reset a column of the derived type. You can optionally override this method in the derived class to provide a custom initialization routine. This base implementation of the <see cref="M:System.Web.UI.WebControls.DataGridColumn.Initialize" /> method is often called from the overridden method to reset properties common to all column types derived from the <see cref="T:System.Web.UI.WebControls.DataGridColumn" /> class. The <see cref="M:System.Web.UI.WebControls.DataGridColumn.Initialize" /> method is usually called during data binding, prior to the first row being bound.</para><para>When the <see cref="M:System.Web.UI.WebControls.DataGridColumn.Initialize" /> method is used, the design mode of the column is set to true.</para><block subset="none" type="note"><para>This method is commonly used by control developers.</para></block></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Provides the base implementation to reset a column derived from the <see cref="T:System.Web.UI.WebControls.DataGridColumn" /> class to its initial state.</para></summary></Docs><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="InitializeCell"><MemberSignature Language="C#" Value="public virtual void InitializeCell (System.Web.UI.WebControls.TableCell cell, int columnIndex, System.Web.UI.WebControls.ListItemType itemType);" /><MemberType>Method</MemberType><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="cell" Type="System.Web.UI.WebControls.TableCell" /><Parameter Name="columnIndex" Type="System.Int32" /><Parameter Name="itemType" Type="System.Web.UI.WebControls.ListItemType" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="M:System.Web.UI.WebControls.DataGridColumn.InitializeCell(System.Web.UI.WebControls.TableCell,System.Int32,System.Web.UI.WebControls.ListItemType)" /> method provides the base implementation to reset the specified cell from a column derived from the <see cref="T:System.Web.UI.WebControls.DataGridColumn" /> class to its initial state. This method is not called directly. Instead, this method is inherited by a derived column class, which can then be used to reset a cell in the column of the derived type. You can optionally override this method in the derived class to provide a custom initialization routine. This base implementation of the <see cref="M:System.Web.UI.WebControls.DataGridColumn.InitializeCell(System.Web.UI.WebControls.TableCell,System.Int32,System.Web.UI.WebControls.ListItemType)" /> method is often called from the overridden method to reset properties common to all cells in columns derived from the <see cref="T:System.Web.UI.WebControls.DataGridColumn" /> class.</para><para>In this implementation, the <see cref="M:System.Web.UI.WebControls.DataGridColumn.InitializeCell(System.Web.UI.WebControls.TableCell,System.Int32,System.Web.UI.WebControls.ListItemType)" /> method resets only the header and footer cells. Other types of cells are not affected by this method.</para><para>When sorting is enabled (by setting the <see cref="P:System.Web.UI.WebControls.DataGrid.AllowSorting" /> property to true), a <see cref="T:System.Web.UI.WebControls.LinkButton" /> control is added to the header cell by default. This allows you to sort the column when the <see cref="T:System.Web.UI.WebControls.LinkButton" /> control is clicked. If you specify an image for the header cell (by setting the <see cref="P:System.Web.UI.WebControls.DataGridColumn.HeaderImageUrl" /> property), an <see cref="T:System.Web.UI.WebControls.ImageButton" /> control is created instead.</para><para>When sorting is disabled, the text specified by the <see cref="P:System.Web.UI.WebControls.DataGridColumn.HeaderText" /> property is displayed in the header cell. If you specify an image for the header cell (by setting the <see cref="P:System.Web.UI.WebControls.DataGridColumn.HeaderImageUrl" /> property), an <see cref="T:System.Web.UI.WebControls.Image" /> control is added to the header cell.</para><para>Because a browser will not display an empty cell, if an image in not displayed in the header cell and the <see cref="P:System.Web.UI.WebControls.DataGridColumn.HeaderText" /> property is not set, a nonbreaking space HTML entity (&amp;nbsp;) is displayed in the header cell. Similarly, if the footer cell does not have any content (if the <see cref="P:System.Web.UI.WebControls.DataGridColumn.FooterText" /> property is not set), a nonbreaking space HTML entity is displayed in the footer cell.</para><block subset="none" type="note"><para>This method is commonly used by control developers.</para></block></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Provides the base implementation to reset the specified cell from a column derived from the <see cref="T:System.Web.UI.WebControls.DataGridColumn" /> class to its initial state.</para></summary><param name="cell"><attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.Web.UI.WebControls.TableCell" /> that represents the cell to reset. </param><param name="columnIndex"><attribution license="cc4" from="Microsoft" modified="false" />The column number where the cell is located. </param><param name="itemType"><attribution license="cc4" from="Microsoft" modified="false" />One of the <see cref="T:System.Web.UI.WebControls.ListItemType" /> values. </param></Docs><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="IsTrackingViewState"><MemberSignature Language="C#" Value="protected bool IsTrackingViewState { get; }" /><MemberType>Property</MemberType><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Docs><value>To be added: an object of type 'bool'</value><remarks>To be added</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets a value that determines whether the <see cref="T:System.Web.UI.WebControls.DataGridColumn" /> object is marked to save its state.</para></summary></Docs><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ItemStyle"><MemberSignature Language="C#" Value="public virtual System.Web.UI.WebControls.TableItemStyle ItemStyle { get; }" /><MemberType>Property</MemberType><ReturnValue><ReturnType>System.Web.UI.WebControls.TableItemStyle</ReturnType></ReturnValue><Docs><value>To be added: an object of type 'TableItemStyle'</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Use this property to provide a custom style for the item cells of the column. Common style attributes that can be adjusted include foreground color, background color, font, and content alignment within the cell. Providing a different style enhances the appearance of the column in the <see cref="T:System.Web.UI.WebControls.DataGrid" /> control.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the style properties for the item cells of the column.</para></summary></Docs><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo><Attributes><Attribute><AttributeName>System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)</AttributeName></Attribute><Attribute><AttributeName>System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)</AttributeName></Attribute><Attribute><AttributeName>System.ComponentModel.DefaultValue(null)</AttributeName></Attribute></Attributes></Member><Member MemberName="LoadViewState"><MemberSignature Language="C#" Value="protected virtual void LoadViewState (object savedState);" /><MemberType>Method</MemberType><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="savedState" Type="System.Object" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This method is used primarily by the .NET Framework infrastructure and is not intended to be used directly from your code.  However, control developers can override this method to specify how a custom server control restores its view state. For more information, see <format type="text/html"><a href="0218d965-5d30-445b-b6a6-8870e70e63ce">ASP.NET State Management Overview</a></format>.</para><para>Use the <see cref="M:System.Web.UI.WebControls.DataGridColumn.LoadViewState(System.Object)" /> method to load the state of the <see cref="T:System.Web.UI.WebControls.DataGridColumn" /> object. This allows a column to perform custom view-state management.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Loads the state of the <see cref="T:System.Web.UI.WebControls.DataGridColumn" /> object.</para></summary><param name="savedState"><attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Object" /> that contains the saved state of the <see cref="T:System.Web.UI.WebControls.DataGridColumn" />. </param></Docs><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="OnColumnChanged"><MemberSignature Language="C#" Value="protected virtual void OnColumnChanged ();" /><MemberType>Method</MemberType><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters /><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>When the properties of a column derived from the <see cref="T:System.Web.UI.WebControls.DataGridColumn" /> class change, the <see cref="M:System.Web.UI.Design.WebControls.DataGridDesigner.OnColumnsChanged" /> method should be called.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Calls the <see cref="M:System.Web.UI.Design.WebControls.DataGridDesigner.OnColumnsChanged" /> method.</para></summary></Docs><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Owner"><MemberSignature Language="C#" Value="protected System.Web.UI.WebControls.DataGrid Owner { get; }" /><MemberType>Property</MemberType><ReturnValue><ReturnType>System.Web.UI.WebControls.DataGrid</ReturnType></ReturnValue><Docs><value>To be added: an object of type 'DataGrid'</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Use the <see cref="P:System.Web.UI.WebControls.DataGridColumn.Owner" /> property to programmatically determine the <see cref="T:System.Web.UI.WebControls.DataGrid" /> control that the column is a member of.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the <see cref="T:System.Web.UI.WebControls.DataGrid" /> control that the column is a member of.</para></summary></Docs><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="SaveViewState"><MemberSignature Language="C#" Value="protected virtual object SaveViewState ();" /><MemberType>Method</MemberType><ReturnValue><ReturnType>System.Object</ReturnType></ReturnValue><Parameters /><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Use the <see cref="M:System.Web.UI.WebControls.DataGridColumn.SaveViewState" /> method to save the state of the <see cref="T:System.Web.UI.WebControls.DataGridColumn" /> object. This allows a column to perform custom view-state management.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Saves the current state of the <see cref="T:System.Web.UI.WebControls.DataGridColumn" /> object.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>An <see cref="T:System.Object" /> that contains the saved state of the <see cref="T:System.Web.UI.WebControls.DataGridColumn" />.</para></returns></Docs><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="SortExpression"><MemberSignature Language="C#" Value="public virtual string SortExpression { set; get; }" /><MemberType>Property</MemberType><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Parameters /><Docs><value>To be added: an object of type 'string'</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Use the <see cref="P:System.Web.UI.WebControls.DataGridColumn.SortExpression" /> property to specify or determine the name of the field to pass to the <see cref="M:System.Web.UI.WebControls.DataGrid.OnSortCommand(System.Web.UI.WebControls.DataGridSortCommandEventArgs)" /> method when a column is selected for sorting.</para><block subset="none" type="note"><para>This property does not bind the column to a field in data source. To bind a column to a field, see the documentation for the specific column type.</para></block><para>When sorting is enabled, <see cref="T:System.Web.UI.WebControls.LinkButton" /> controls are rendered in the heading section of each column where the <see cref="P:System.Web.UI.WebControls.DataGridColumn.SortExpression" /> property is set.</para><block subset="none" type="note"><para>When the <see cref="P:System.Web.UI.WebControls.DataGrid.AutoGenerateColumns" /> property is set to true, the <see cref="P:System.Web.UI.WebControls.DataGridColumn.SortExpression" /> property for each column in the <see cref="T:System.Web.UI.WebControls.DataGrid" /> control that supports data binding is automatically set with the field name bound to the column. If the <see cref="P:System.Web.UI.WebControls.DataGrid.AutoGenerateColumns" /> property is set to false, you need to manually set the <see cref="P:System.Web.UI.WebControls.DataGridColumn.SortExpression" /> property with the field name bound to the column for each column that you want to enable sorting for.</para></block><para>These <see cref="T:System.Web.UI.WebControls.LinkButton" /> controls allow you to sort the <see cref="T:System.Web.UI.WebControls.DataGrid" /> control by the selected column. When a <see cref="T:System.Web.UI.WebControls.LinkButton" /> control for a column is clicked, the <see cref="E:System.Web.UI.WebControls.DataGrid.SortCommand" /> event is raised. The value of the <see cref="P:System.Web.UI.WebControls.DataGridColumn.SortExpression" /> property for the selected column is passed to the <see cref="M:System.Web.UI.WebControls.DataGrid.OnSortCommand(System.Web.UI.WebControls.DataGridSortCommandEventArgs)" /> event handler as part of the <see cref="T:System.Web.UI.WebControls.DataGridSortCommandEventArgs" /> object.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets or sets the name of the field or expression to pass to the <see cref="M:System.Web.UI.WebControls.DataGrid.OnSortCommand(System.Web.UI.WebControls.DataGridSortCommandEventArgs)" /> method when a column is selected for sorting.</para></summary></Docs><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo><Attributes><Attribute><AttributeName>System.ComponentModel.DefaultValue("")</AttributeName></Attribute></Attributes></Member><Member MemberName="System.Web.UI.IStateManager.IsTrackingViewState"><MemberSignature Language="C#" Value="bool System.Web.UI.IStateManager.IsTrackingViewState { get; }" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="P:System.Web.UI.WebControls.DataGridColumn.IsTrackingViewState" /> member is used primarily by control developers when deriving a custom implementation from the <see cref="T:System.Web.UI.WebControls.DataGridColumn" /> class.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets a value that indicates whether the column is tracking view state changes.</para></summary></Docs></Member><Member MemberName="System.Web.UI.IStateManager.LoadViewState"><MemberSignature Language="C#" Value="void IStateManager.LoadViewState (object savedState);" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="savedState" Type="System.Object" /></Parameters><Docs><param name="savedState">To be added.</param><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Loads previously saved state.</para></summary></Docs></Member><Member MemberName="System.Web.UI.IStateManager.SaveViewState"><MemberSignature Language="C#" Value="object IStateManager.SaveViewState ();" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Object</ReturnType></ReturnValue><Parameters /><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns an object containing state changes.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="T:System.Object" /> that contains the view state changes.</para></returns></Docs></Member><Member MemberName="System.Web.UI.IStateManager.TrackViewState"><MemberSignature Language="C#" Value="void IStateManager.TrackViewState ();" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters /><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Starts tracking state changes.</para></summary></Docs></Member><Member MemberName="ToString"><MemberSignature Language="C#" Value="public override string ToString ();" /><MemberType>Method</MemberType><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Parameters /><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Use the <see cref="M:System.Web.UI.WebControls.DataGridColumn.ToString" /> method to get the string representation of the column.</para><block subset="none" type="note"><para>This method is inherited from the <see cref="T:System.Object" /> class and is not applicable to the <see cref="T:System.Web.UI.WebControls.DataGridColumn" /> class.</para></block></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns the string representation of the column.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns <see cref="F:System.String.Empty" />.</para></returns></Docs><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="TrackViewState"><MemberSignature Language="C#" Value="protected virtual void TrackViewState ();" /><MemberType>Method</MemberType><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters /><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Use the <see cref="M:System.Web.UI.WebControls.DataGridColumn.TrackViewState" /> method to track view-state changes on the server control so they can be stored in the server control's <see cref="T:System.Web.UI.StateBag" /> object. This allows a column to perform custom view-state management.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Causes tracking of view-state changes to the server control so they can be stored in the server control's <see cref="T:System.Web.UI.StateBag" /> object.</para></summary></Docs><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ViewState"><MemberSignature Language="C#" Value="protected System.Web.UI.StateBag ViewState { get; }" /><MemberType>Property</MemberType><ReturnValue><ReturnType>System.Web.UI.StateBag</ReturnType></ReturnValue><Parameters /><Docs><value>a <see cref="T:System.Web.UI.StateBag" /></value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Use the <see cref="P:System.Web.UI.WebControls.DataGridColumn.ViewState" /> property to retrieve the <see cref="T:System.Web.UI.StateBag" /> object that allows a column derived from the <see cref="T:System.Web.UI.WebControls.DataGridColumn" /> class to store its properties. The state of each property is automatically managed.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the <see cref="T:System.Web.UI.StateBag" /> object that allows a column derived from the <see cref="T:System.Web.UI.WebControls.DataGridColumn" /> class to store its properties.</para></summary></Docs><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Visible"><MemberSignature Language="C#" Value="public bool Visible { set; get; }" /><MemberType>Property</MemberType><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Parameters /><Docs><value>To be added: an object of type 'bool'</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Use the <see cref="P:System.Web.UI.WebControls.DataGridColumn.Visible" /> property to programmatically control whether the column is visible in the <see cref="T:System.Web.UI.WebControls.DataGrid" /> control.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets or sets a value that indicates whether the column is visible in the <see cref="T:System.Web.UI.WebControls.DataGrid" /> control.</para></summary></Docs><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo><Attributes><Attribute><AttributeName>System.ComponentModel.DefaultValue(true)</AttributeName></Attribute></Attributes></Member></Members></Type>