Wednesday, July 23, 2014
Usually when you use the Query Builder feature to build your query you leave the "*" in the select statement. Th problem with the "*" select statement is that it selects all the columns in the table. This can sometimes make your GridView very big with all the columns in the table being displayed.
In this tutorial we will display only the columns that we want our users to see. This tutorial assumes that you've created a GridView with the "*" selected on the "Northwind", "Products" table.
1. Click on the ">" icon on the right hand side of the GridView control, the "GridView Tasks" panel will appear
2. Click on the "Edit Columns" link
4. Select the "CategoryID" field in the "Selected fields" list box then click on the "X" button
5. Select the "ProductID" field in the "Selected fields" list box then click on the "X" button
7. Click "OK"
9. Type Ctrl+F5 to run the application and see the new GridView with less columns
In this tutorial we will display only the columns that we want our users to see. This tutorial assumes that you've created a GridView with the "*" selected on the "Northwind", "Products" table.
1. Click on the ">" icon on the right hand side of the GridView control, the "GridView Tasks" panel will appear
2. Click on the "Edit Columns" link
3. Select the "SupplierID" field in the "Selected fields" list box then click on the "X" button
4. Select the "CategoryID" field in the "Selected fields" list box then click on the "X" button
5. Select the "ProductID" field in the "Selected fields" list box then click on the "X" button
6. Now the "Selected fields" will have not have the "ProductID,CategoryID,SupplierID". The remaining fields are the fields that will be displayed on the GridView. Noticed the "Available Fields" list box, it still contain all the fields that you've selected. That means you can perform functions on those fields, the fields just won't be displayed anymore.
8. As you can see the GridView only has the fields that you've selected in the "Selected fields" list box
Subscribe to:
Post Comments (Atom)
Search This Blog
Tags
Web Development
Linux
Javascript
DATA
CentOS
ASPNET
SQL Server
Cloud Computing
ASP.NET Core
ASP.NET MVC
SQL
Virtualization
AWS
Database
ADO.NET
AngularJS
C#
CSS
EC2
Iaas
System Administrator
Azure
Computer Programming
JQuery
Coding
ASP.NET MVC 5
Entity Framework Core
Web Design
Infrastructure
Networking
Visual Studio
Errors
T-SQL
Ubuntu
Stored Procedures
ACME Bank
Bootstrap
Computer Networking
Entity Framework
Load Balancer
MongoDB
NoSQL
Node.js
Oracle
VirtualBox
Container
Docker
Fedora
Java
Source Control
git
ExpressJS
MySQL
NuGet
Blogger
Blogging
Bower.js
Data Science
JSON
JavaEE
Web Api
DBMS
DevOps
HTML5
MVC
SPA
Storage
github
AJAX
Big Data
Design Pattern
Eclipse IDE
Elastic IP
GIMP
Graphics Design
Heroku
Linux Mint
Postman
R
SSL
Security
Visual Studio Code
ASP.NET MVC 4
CLI
Linux Commands
Powershell
Python
Server
Software Development
Subnets
Telerik
VPC
Windows Server 2016
angular-seed
font-awesome
log4net
servlets
tomcat
AWS CloudWatch
Active Directory
Angular
Blockchain
Collections
Compatibility
Cryptocurrency
DIgital Life
DNS
Downloads
Google Blogger
Google Chrome
Google Fonts
Hadoop
IAM
KnockoutJS
LINQ
Linux Performance
Logging
Mobile-First
Open Source
Prototype
R Programming
Responsive
Route 53
S3
SELinux
Software
Unix
View
Web Forms
WildFly
XML
cshtml
githu
Mua vé máy bay tại Aivivu, tham khảo
ReplyDeletevé máy bay đi Mỹ giá rẻ 2021
giá vé máy bay mỹ về việt nam
chuyến bay thương mại từ canada về việt nam
các chuyến bay từ narita về hà nội
khi nào mở lại đường bay hàn quốc
Vé máy bay từ Đài Loan về VN
Chi phí cho chuyên gia nước ngoài