private void Show_Combobox(int iRowIndex, int iColumnIndex) { // DESCRIPTION: SHOW THE COMBO BOX IN THE SELECTED CELL OF THE GRID. // PARAMETERS: iRowIndex - THE ROW ID OF THE GRID. // iColumnIndex - THE COLUMN ID OF THE GRID. int x = 0; int y = 0; int Width = 0; int height = 0; // GET THE ACTIVE CELL'S DIMENTIONS TO BIND THE COMBOBOX WITH IT. Rectangle rect = default(Rectangle); rect = grid_Master.GetCellDisplayRectangle(iColumnIndex, iRowIndex, false); x = rect.X + grid_Master.Left; y = rect.Y + grid_Master.Top; Width = rect.Width; height = rect.Height; ComboBox1.SetBounds(x, y, Width, height); ComboBox1.Visible = true; ComboBox1.Focus(); }