Data Binding ASP.Net Tutorial

Property                  Description
DataField                 Identifies the field
DataFormatString          Formats the field. 
ApplyFormatInEditMode     format the value even when editing. 
                          The default is false,
                          
FooterText, HeaderText    text in header and footer
and HeaderImageUrl        
ReadOnly                  it prevents the value from being changed in edit mode. 
InsertVisible             If true, it prevents the value being set in insert mode. 
                   
Visible                   
SortExpression            Sorts your results based on one or more columns. 
HtmlEncode                If true (the default), all text will be HTML encoded to prevent special characters from mangling the page. 
NullDisplayText           Displays the text that will be shown for a null value. 
                          The default is an empty string
                          
ConvertEmptyStringToNull  If true, converts all empty strings to null values.
ControlStyle              Configures the appearance 
HeaderStyle
FooterStyle
and ItemStyle 
<%@ Page Language="C#" AutoEventWireup="true"%>



    Untitled Page


    
    

        
            
                
                    Global style settings:
                                                      runat="server" 
                                  DataSourceID="SqlDataSource1"
                                  AutoGenerateColumns="false">
            
                                        
                    
                       
                         
                         
                         
                       

                    
                
                
                    Column-specific styles:
                                                      runat="server" 
                                  DataSourceID="SqlDataSource1"
                                  AutoGenerateColumns="false" >
                     
                         
                         
                                                
                            
                         
                         
                     

                    
                
            

        

         
        "
            SelectCommand="SELECT ProductID, ProductName, UnitPrice FROM Products">
    
    

    


File: Web.config