You can create a simple light box using javascript and css. Then use ajax to load the datagrid of records into the lightbox.
CSS
.black_overlay{
display: none;
position: fixed;
top: 0%;
left: 0%;
width: 100%;
height: 100%;
background-color: black;
z-index:1001;
-moz-opacity: 0.8;
opacity:.80;
filter: alpha(opacity=80);
}
.white_content {
display: none;
position: fixed;
top: 5%;
left: 5%;
width: 90%;
height: auto;
max-height: 90%;
padding: 16px;
border: 2px solid #930;
background-color: white;
z-index:1002;
overflow: auto;
}
Add this to your page HTML code
<div id="light" class="white_content"></div>
<div id="fade" class="black_overlay"></div>
The make an ajax call to get the records when the button is click. This snippet will work. Though you will have to modify it to suit your program
$(document).ready(function(e) {
$(document).delegate('#btnID', 'click', function(){
$('.white_content').html(''); //set lightbox body to blank
$.post(url,
{
//data
},
function(data, status){
$('.white_content').html(data);
}).fail(function(){
$('.white_content').html('Loading failed')
});
});
});