ExpertRating - Online Certification and Employment Testing ExpertRating - Online Certification and Employment Testing ExpertRating - Online Certification and Employment Testing

ExpertRating Home
ExpertRating Benefits
Recommend ExpertRating
Suggest More Tests
Privacy Policy
FAQ
Login
 
ASP Dot Net Tutorial - Index
ASP Dot Net Tutorial - Microsofts ASP.NET
ASP Dot Net Tutorial - Begining Web Forms
ASP Dot Net Tutorial - User Controls
ASP Dot Net Tutorial - ADO .NET
ASP Dot Net Tutorial - DataBinding to WebControls
ASP Dot Net Tutorial - DataList Controls
ASP Dot Net Tutorial - DataGrid Control
ASP Dot Net Tutorial - Advance Practical Examples on DataGrid
ASP Dot Net Tutorial - Working with DataSets
ASP Dot Net Tutorial - Working with XML
ASP Dot Net Tutorial - Forms Based Authentication
ASP Dot Net Tutorial - Windows Based Authentication
     

 
Online Personal Trainer Certification
Test Search by Job Title
Find a Personal Trainer
Job Resources
Free Self Tests and Quizzes
Find a Lawyer
Project Management Certification
Six Sigma Certification
Six Sigma Black Belt Certification
Six Sigma Green Belt Certification
Lean Management Certification
First Aid Certification
CPR Certification
Yoga Certification
Aerobics Certification
Pilates Certification
SEO Certification
Online Photography Course & Certification
Online Business Writing Course & Certification
Baby Sitting Course & Certification
Time Manangement Certification
Health Club Management Certification
Selling Skills Certification
Business Analysis Course
Green Living Course  free!
Master Trainer Certification
Total Quality Management Certification
Kaizen Certification
Creative Writing Certification
  All Online Courses
   

   
   
   
   
   
   

   
  Home > Courses, Tutorials & eBooks > ASP.NET Tutorial > The DataGrid Control
 

ASP.NET Tutorial - The DataGrid Control

                                                                                                                 Page 4 of 4
 

The output above example is shown below:

 The DataGrid in above example is bound to the Employees database table.

The values from the Employees FirstName column are displayed by the BoundColumn, and links to a page with detailed author information are displayed by the HyperLinkColumn.

Each hyperlink displayed by the HyperLinkColumn is displayed with the help of the DataNavigateUrlField, DataNavigateUrlFormatString, and Text properties. The DataNavigateUrlField and DataNavigateUrlFormatString properties create tile URL for the link. In this case, the links point to a page named EmpDetails. aspx. The EmployeeID column is passed to EmpDetails. aspx in a query string variable named ID.

The Text property specifies the label for the link. In above example, each link is simply labelled with the text view of complete details.

Following is a list of some of the important properties of a Hype rLinkColumn:

DataNavigateUrlField

A field from the DataGrid control's data source for creating the URL of the hyperlink

DataNavigateUrlFormatString

A format string that formats the value of the DataNavigateUrlField

DataTextField

A field from the DataGrid control's data source used for the label of the hyperlink

HeaderrmageUrl

Image that is displayed at the top of the HyperLinkColumn

DataTextFormatString

A format string that formats the value of the DataTextField

FooterText

Text displayed at the bottom of the HyperLinkColumn

HeaderText

Text displayed at the top of the HyperLinkColumn

NavigateUrl

The URL of the hyperlink

Text

Text displayed as the label of the hyperlink

Target

The window or frame that the hyperlink targets

       

 

 
     
Home  |  About Us  |  Privacy Policy  |  Site Map  |  FAQs  |  Contact Us
 
© ExpertRating 2006. All Rights Reserved.