ASP.NET Grid - Visible property for the Columns

ORDER ID
NAME
CITY
POSTAL CODE
COUNTRY
EDIT
 
 
 
 
 
 
 
 
11075
Richter Supermarkt > =
Genve
1204
Germany
11074
Simons bistro
Kbenhavn '
17341
Denmark
11072
Ernst Handel
Graz
8010
Russia
11071
LILA-Supermercado
Barquisimeto
35082
Portugal
11070
Lehmanns Marktstand
Frankfurt a.M.
60528
Germany
11069
Tortuga Restaurante
Mxico D.F.
05033
Mexico
11068
Queen Cozinha
So Paulo
05487-020
Brazil
11067
Drachenblut Delikatessen
Aachen
52066
Germany
11066
White Clover Markets
Seattle
98124
USA
11065
LILA-Supermercado
Barquisimeto
3508
Venezuela
 
 
 
 
Records per page:
1
|
2
|
3
Records: 1 - 10 of 25 - Pages: 
-



Sometimes you need to access some values from the database, but you don't want to display them in the Grid
(for example primary key columns, autogenerated columns etc.)

Set the Visible property of the Column class to false and the column won't be appear in the Grid.

In this example, the "OrderID" columns is not visible.



« Back to examples