>No, I kept code inside Text1 Click method becasue I wanted that If the user Clicks on Column Number 1, One command Should execute and If the User Clicks on second column other command should execute. > >Is it possible ? IF yes, where Should I place My Code and How ? > > That will be trickier. Check this sample of using GridHitTest