public GridSubPanel(GridVirtual gridContainer, GridSubPanelType containerType)
: base(gridContainer, containerType)
{
AllowDrop = true;
//to remove flicker and use custom draw
SetStyle(ControlStyles.UserPaint, true);
SetStyle(ControlStyles.AllPaintingInWmPaint, true);
SetStyle(ControlStyles.DoubleBuffer, true);
SetStyle(ControlStyles.SupportsTransparentBackColor, true);
SetStyle(ControlStyles.ContainerControl, true);
SetStyle(ControlStyles.Selectable, false);
m_ControlsRepository = new ControlsRepository(this);
TabStop = false; //The grid control is a special control and usually don't receive the focus with the Tab
}