private void ButtonClick(object sender, EventArgs e)
        {
            var height = objects == null
                              ? MinDropHeight
                              : (objects.Count + 1) * gridItemHeight;

            if (height < MinDropHeight)
            {
                height = MinDropHeight;
            }
            if (height > MaxDropHeight)
            {
                height = MaxDropHeight;
            }

            var location = PointToScreen(new Point(0, textBox.Bottom));
            var dlg      = new GridDropDialog(location.X, location.Y, Width, height,
                                              MinTableWidth, FixedTableWidth,
                                              CellBackColor, AltBackColor, FontColor,
                                              columns, objects, SelectedObject);

            dlg.gridObjectSelected += ObjectSelected;
            dlg.Show();
        }
        private void ButtonClick(object sender, EventArgs e)
        {
            var height = objects == null
                              ? MinDropHeight
                              : (objects.Count + 1) * gridItemHeight;
            if (height < MinDropHeight) height = MinDropHeight;
            if (height > MaxDropHeight) height = MaxDropHeight;

            var location = PointToScreen(new Point(0, textBox.Bottom));
            var dlg = new GridDropDialog(location.X, location.Y, Width, height,
                MinTableWidth, FixedTableWidth,
                CellBackColor, AltBackColor, FontColor,
                columns, objects, SelectedObject);
            dlg.gridObjectSelected += ObjectSelected;
            dlg.Show();
        }