I am not entirely sure what you mean by "I have stack Panel which contains few Buttons for Edit So submenu for column show and hide giving me issue
" does your cell data contain StackPanel with a few buttons or you have a custom header?
In order to add columns dynamically to the Columns
collection of RadGridView
, you can manually define them in code-behind. For more information about that, you can check the Manual Columns Definition
section in the Defining Columns
documentation article. In addition you will need to bind that column to a property from your business object that contains the data you need to display.
As for showing different ContextMenus
for Rows and Headers, you can combine the HeaderContextMenu
and RowContextMenu online demos.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.