Checkbox's AutoPostBack=True property causing the full postback of the page wihcih sets modal pop box's visiblity to default that is hidden. You can call
$('#example').modal('show')
to display the popup.
Or you can put your GridView control in UpdatePanel to avoid full page postback which will retain the pop up box.