Hi All, It worked . If we assign the context menu using the id of datagrid then the context menu works, for example if the id of datagrid is dg, then by using dg.contextmenu = cm. But I wonder why it doesn't work by assigning it directly in datagrid using binding.
Thanks Nitin Gopi