Click here to Skip to main content
15,886,833 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
apply css

to gridview using javascript

I tried as

document.getElementByID(<%= dgvMaildetail.ClientID%>).cssClass= 'border';

but not working

please suggest..
Posted
Updated 7-Dec-11 21:48pm
v2
Comments
RaviRanjanKr 8-Dec-11 3:56am    
Always wrap your code in Pre tag.. :)

1 solution

try this..

document.getElementByID(<%= dgvMaildetail.ClientID%>).className='border';

hope it will works..
 
Share this answer
 
v2
Comments
RaviRanjanKr 8-Dec-11 3:56am    
Always wrap your code in Pre tag.
Karthik Harve 8-Dec-11 3:59am    
I dont think for one line answers PRE tags are necessary

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900