I want to apply a CSS class to a gridview. I tried to apply this style reference link, so I try this
success: function (result) {
var final = JSON.parse(result.d).response;
console.log(JSON.parse(result.d).response)
$("#tabledata").empty();
if (final.length > 0) {
$("#tabledata").append(
"<tr ><th>ID</th><th>OwnerName</th></tr>");
for (var i = 0; i < final.length; i++) {
if (final[i] !== null) {
$("#tabledata").append("<tr><td>" +
final[i][0] + "</td> <td>" +
final[i][1] + "</td> <td>" +
}
}
}
else {
$("#tabledata").hide();
$("#Label4").text("No Data");
}
},
error: function (error) {
alert("error");
}
});
}
but when i build then there is no effect in grid view
And gridview in html
<table id="tabledata">
</table>
When i apply this then gridview is display with simple where as i want to apply this css in gridview when i apply this then gridview display without formatting… what i try
what i want
So how i apply css ?? any solution?