The control inside the grid gets the click events, so the TextBox.RightClick is firing on rows with data. You can use your own TextBox subclass in place of the default one. Or add code to the RightClick methods of the controls.
Or if the grid is read only, you can place a transparent shape over the grid cell region and use it's RightClick to handle the menu.
>I'm doing a program which consists of grid. I want to have a right click to call a popup menu, but this only works when i click on the grid area which does not have any data. When I try to right click on the grid area which has a data, the right click event seem does fire at all.