How to capture the cell click event in WinForms MultiColumnComboBox?
Capture the cell click event
The MultiColumnComboBox cell click event can be raised by first hooking the MultiColumnComboBox.ListBox.MouseUp event and then calling the GridControl. RaiseCellClick method within it. Get the RowIndex and ColumnIndex of the GridControl using PointToRowCol method.
C#
public Form1()
{
InitializeComponent();
this.multiColumnComboBox1.ListBox.MouseUp += ListBox_MouseUp;
GridControl grid = this.multiColumnComboBox1.ListBox.Grid;// as GridControl;
//Invoke the cell click event
grid.CellClick += Grid_CellClick;
}
//Event customization
private void ListBox_MouseUp(object sender, MouseEventArgs e)
{
GridControl gc = this.multiColumnComboBox1.ListBox.Grid;
int rowIndex = 0, colIndex = 0;
gc.PointToRowCol(e.Location, out rowIndex, out colIndex);
//Raising CellClick event manually
gc.RaiseCellClick(rowIndex, colIndex, e);
}
private void Grid_CellClick(object sender, GridCellClickEventArgs e)
{
MessageBox.Show("Grid cell event clicked");
GridControl gc = this.multiColumnComboBox1.ListBox.Grid;
GridStyleInfo style = gc[e.RowIndex, e.ColIndex];
if (style.CellType == GridCellTypeName.PushButton)
{
//Code to customize
}
}

Fig 1: Shows the clicked staff cell.

Fig 2: Shows the message box after the GridCell click performed.
Sample: How to capture the cell click event in MultiColumnComboBox