Hello,
I would like to know if it is possible to cancel an item being created in the grid's header context menu.
Here is my temp solution (that works) :
I am looking for a better way to do this. I would love to be able to cancel the item from being created at all, rather than letting it create and then removing it.
Thank you
I would like to know if it is possible to cancel an item being created in the grid's header context menu.
Here is my temp solution (that works) :
grid.HeaderContextMenu.ItemCreated += (o, e) =>
{
if
(some_condition)
{
e.Item.Owner.Items.Remove(e.Item);
}
};
I am looking for a better way to do this. I would love to be able to cancel the item from being created at all, rather than letting it create and then removing it.
Thank you