I am using Visual Studio 2019 and MYSQL I am working on code first approach and here is my code
<script type="text/javascript">
$("#propgrid").on("expand-row.bs.table", function (e, index, row, $detail) {
debugger
$detail.html('<div class="ml-20 mr-20"><table class="table table-bordered text-center"></table></div>').find('table').bootstrapTable({
columns: [{
field: "Bathroom",
title: "Bathroom",
sortable: true,
}, {
field: "Bedroom",
title: "Bedroom",
sortable: true,
}, {
field: "FurnishingType",
title: "FurnishingType",
sortable: true,
}
],
data: row,
sidePagination: 'properties',
sortName: "Bathroom",
pagination: true
});
});
</script>