I've never had a situation like that, but try placing the below code in the PageLoad routine and make sure it is outside of any "If not IsPostBack" statements you may have. You'll want to make sure that code fires every time you have to go to the server. By no means am I sure, but it may give you a place to start?
dgDataGridName.Style("Z-INDEX") = "2700"