|
//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
}
} |