ashok kumar

ashok kumar

  • NA
  • 89
  • 36.2k

Hide the asp gridview lines using javascript or jquery

Mar 31 2014 7:35 AM
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.
 
function printDiv(divID) {



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

}

Answers (2)