• Material 3
  • Material 3 Dark
  • Fluent
  • Fluent Dark
  • Bootstrap v5
  • Bootstrap v5 Dark
  • Tailwind CSS
  • Tailwind CSS Dark
  • Material
  • Bootstrap v4
  • High Contrast
Preferences
Theme Selection
Mode Selection
Touch
Mouse
Localization
*Translated by Google Translator.
Currency

Example of Show or Hide Column in ASP.NET MVC Data Grid Control

This sample demonstrates dynamic show hide columns feature of Grid. Select column name from the properties panel and click hide/show to toggle visibility.

DEMO
SOURCE
Column
Hidden Columns

The Grid column can be showed/hidden dynamically using showColumns and hideColumns method of the Grid.

In this demo, the columns can be showed and hidden by selecting the column name in the dropdown and click the Show or Hide buttons to toggle visibility. And the column`s visibility is toggled based on the Columns->HeaderText value.


The Columns->Visible property specifies the visibility of a column. To hide a column at the initial rendering, set the Columns->Visible property to false.

Transform your ASP.NET MVC web apps today with Syncfusion ASP.NET MVC components
85+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE