Changed DataGrid to GridView and updated code.