TMSFNCDataGrid wrong font size when gcsAppearance is used

When using a DataGrid with standard settings (High-DPI-Screen, Scaling > 100%, Manifest per Monitor V2), the font is at i would expect it:

But as soon as i use "gcsAppearance" to do additional formatting, the font is way to small (although i didn't change the font-settings). In my opinion the font should stay the same size:

Code to reproduce:

	for(auto pColumn: this->TMSFNCDataGrid1->Columns)
	{
		pColumn->Settings = pColumn->Settings << gcsAppearance;
		pColumn->Appearance->FixedLayout->Fill->Color = clWhite;
	}

	for(int nRow{0}; nRow < 10; ++nRow)
	{
		for(int nCol{0}; nCol < 5; ++nCol)
		{
			this->TMSFNCDataGrid1->Strings[nCol][nRow] = L"Test";
		}
	}

With this code the text is to small. Commenting out the first loop the text has the correct size.

Thanks for the code, we have fixed this issue here. Next version will address this.

1 Like