To reproduce:
- Add a grid to a PageView and add the pageView to a dock window at run time.
- The grid should not be visible.
- Set your DPI setting to 150%
Workaround:
class MyViewDefinition : TableViewDefinition
{
public override IRowView CreateViewUIElement(GridViewInfo viewInfo)
{
return new MyTableElement();
}
}
class MyTableElement : GridTableElement
{
public override void DpiScaleChanged(SizeF scaleFactor)
{
if (this.ViewTemplate != null)
{
base.DpiScaleChanged(scaleFactor);
}
}
protected override Type ThemeEffectiveType
{
get { return typeof(GridTableElement); }
}
}
//use the above definition like this:
radGridView1.ViewDefinition = new MyViewDefinition();