DataGridColumn.Visible Property

 

Gets or sets a value that indicates whether the column is visible in the DataGrid control.

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

member Visible : bool with get, set

Property Value

Type: System.Boolean

true if the column is visible in the DataGrid control; otherwise, false. The default value is true.

Use the Visible property to programmatically control whether the column is visible in the DataGrid control.

The following code example demonstrates how to use the Visible property to indicate whether a column is visible.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: