casting exception through
  

 I want to get text from literal that is inside  a gridview, i used 
   databoundliteralconrtrol for casting .but when i run the program, exception through 
   "unabelUnable to cast object of type 'System.Web.UI.LiteralControl' to type 
   'System.Web.UI.DataBoundLiteralControl'." 
    
    
    **code behind:**
    
    protected void RowDataBound(object sender, GridViewRowEventArgs e)
            {
    
                if (e.Row.RowType == DataControlRowType.DataRow)
                {
    
    
    
    
                    string percentage =   
         ((DataBoundLiteralControl)e.Row.Cells[4].Controls[0]).Text;
               
            
        }
    
                
    
               
            }
casting exception through
===

  

 I want to get text from literal that is inside  a gridview, i used 
   databoundliteralconrtrol for casting .but when i run the program, exception through 
   "unabelUnable to cast object of type 'System.Web.UI.LiteralControl' to type 
   'System.Web.UI.DataBoundLiteralControl'." 
    
    
    **code behind:**
    
    protected void RowDataBound(object sender, GridViewRowEventArgs e)
            {
    
                if (e.Row.RowType == DataControlRowType.DataRow)
                {
    
    
    
    
                    string percentage =   
         ((DataBoundLiteralControl)e.Row.Cells[4].Controls[0]).Text;
               
            
        }
    
                
    
               
            }