how do I move the pre-built "Delete Row" option to the bottom or move my options to the top?
private void dgvSIQ_ContextMenuOpening(object sender, ContextMenuOpeningEventArgs e)
{
RadMenuItem mniProcess = new RadMenuItem();
RadMenuItem mniVendorInquiry = new RadMenuItem();
RadMenuSeparatorItem mniSeparate = new RadMenuSeparatorItem();
e.ContextMenu.Items[0].Visibility = ElementVisibility.Collapsed;
e.ContextMenu.Items[1].Visibility = ElementVisibility.Collapsed;
mniProcess.Text = "Process PO";
mniVendorInquiry.Text = "Vendor Inquiry";
//e.ContextMenu.Items.Add(mniSeparate);
e.ContextMenu.Items.Add(mniVendorInquiry);
e.ContextMenu.Items.Add(mniProcess);
try
{
mniProcess.Click += mniProcess_Click;
mniVendorInquiry.Click += mniVendorInquiry_Click;
}
catch (Exception)
{
}
}