| 
		
	 | 
	
	
	
		Rank: Advanced Member Groups: Member
 
 
Joined: 11/12/2008 Posts: 42 
	 | 
		   
	    
		    i have a static column that displays an image. 
    
        Code: HTML/ASPX
         
        <eo:StaticColumn AllowSort="True" DataField="StatAnda" 
DataFormat="<img src='/Imagens/Status/{0}' />"  HeaderText="And" 
Width="35"> 
     
 
i would like to set the Alt property from the img tag with the data from another db field... the data format would be like this:
 
    
        Code: HTML/ASPX
         
        <img src='/Imagens/Status/{0}' alt='{1}' /> 
     
 
is it possible?? tks, christiano.
		  
	 | 
 | 
	
	
	
		Rank: Administration Groups: Administration
 
 
Joined: 5/27/2007 Posts: 24,427 
	 | 
		   
	     
		    Hi,
  You will need to do the formatting in your SQL statement. The Grid can only take one data field for each column.
  Thanks!
		 
	 | 
 | 
	
	
	
		Rank: Advanced Member Groups: Member
 
 
Joined: 11/12/2008 Posts: 42 
	 | 
		   
	     
		    can i split the field value in the grid? so in one part would come the file name and on the other the alt attribute?
		 
	 | 
 | 
	
	
	
		Rank: Administration Groups: Administration
 
 
Joined: 5/27/2007 Posts: 24,427 
	 | 
		   
	     
		    You can do anything that's possible with string.Format. The Grid calls string.Format with the format string you provided and the value it gets from the db. 
		 
	 | 
 |