Click here to Skip to main content
15,912,329 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
IAm using the grdiview ,in which iam using the print option,problem is i want to remove the gridlines using javascript or jquery, i dont want the code in the codebehind or in the gridview property,when the printdiv function is called the grdilines should disappear.grd is the asp gridview name.kindly provide some suggestions.


XML
function printDiv(divID) {



$("<%=grd.ClientID %> tr").css({ 'border-color': 'White', 'border-width': '0px' });
$("<%=grd.ClientID %>").attr("border", "0");

}
Posted

1 solution

Hi, why not use a separate CSS for printing? That seems that it would be the easiest to implement.
 
Share this answer
 
Comments
ashok_89 31-Mar-14 7:39am    
HIeven if i add CSS,i totally dont have an idea as of how to access the default gridview css properties

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