DataGridColumn::Visible Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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)

public:
property bool Visible {
	bool get();
	void set(bool value);
}

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: