Moving div as per column header click

i have a div & a grid
i want the div to be displayed on the column header click & be positioned with the specific column
suppose 3rd grid header column is clicked the div shld be positioned near 3 column