or
public class ItemComboBox
{
public string CleItem { get; set; }
public string ValeurItem { get; set; }
}
List<
ItemComboBox
> liste = new List<
ItemComboBox
>();
liste.add(new ItemComboBox("", "[None]"));
liste.add(new ItemComboBox("A", "A"));
liste.add(new ItemComboBox("B", "B"));
liste.add(new ItemComboBox("C", "C"));
//cboInsRslCd is my ComboBoxColumn
cboInsRslCd.DataSource = liste;
cboInsRslCd.ValueMember = "CleItem";
cboInsRslCd.DisplayMember = "ValeurItem";
-------------------------------------------|---------------------------
label1 [ TextBox1 ] | label2 [ TextBox2 ]
-------------------------------------------|---------------------------
this
.ContextMenuGrid.DropDownOpening +=
new
System.ComponentModel.CancelEventHandler (
this
.ContextMenuGrid_DropDownOpening);
radGridView1.Relations.AddSelfReference(radGridView1.MasterTemplate,
"Id"
,
"AktivitetRef"
);
So, I get plus icons in the cells where references are available. When the cells containing the plus icon are right clicked, the event is triggered and I generate the context menu I want, but when other cells in that column are right clicked, the event is not triggered and a default context menu is displayed.
Why is the event not triggered? Any idea?