diff --git a/Bin/SunnyUI.dll b/Bin/SunnyUI.dll index 107dd6ae..e475f0b7 100644 Binary files a/Bin/SunnyUI.dll and b/Bin/SunnyUI.dll differ diff --git a/Bin/SunnyUI.pdb b/Bin/SunnyUI.pdb index 1e27c3be..1f51220a 100644 Binary files a/Bin/SunnyUI.pdb and b/Bin/SunnyUI.pdb differ diff --git a/SunnyUI.Demo/Bin/SunnyUI.Demo.exe b/SunnyUI.Demo/Bin/SunnyUI.Demo.exe index ff2145d5..dd3db5a2 100644 Binary files a/SunnyUI.Demo/Bin/SunnyUI.Demo.exe and b/SunnyUI.Demo/Bin/SunnyUI.Demo.exe differ diff --git a/SunnyUI.Demo/Bin/SunnyUI.dll b/SunnyUI.Demo/Bin/SunnyUI.dll index 107dd6ae..e475f0b7 100644 Binary files a/SunnyUI.Demo/Bin/SunnyUI.dll and b/SunnyUI.Demo/Bin/SunnyUI.dll differ diff --git a/SunnyUI/Controls/UIDataGridView.cs b/SunnyUI/Controls/UIDataGridView.cs index 24ff2a10..6f873ccd 100644 --- a/SunnyUI/Controls/UIDataGridView.cs +++ b/SunnyUI/Controls/UIDataGridView.cs @@ -146,6 +146,18 @@ namespace Sunny.UI } } + protected override void OnRowsAdded(DataGridViewRowsAddedEventArgs e) + { + base.OnRowsAdded(e); + SetScrollInfo(); + } + + protected override void OnRowsRemoved(DataGridViewRowsRemovedEventArgs e) + { + base.OnRowsRemoved(e); + SetScrollInfo(); + } + protected override void OnSizeChanged(EventArgs e) { base.OnSizeChanged(e); @@ -355,12 +367,6 @@ namespace Sunny.UI } } - protected override void OnAllowUserToAddRowsChanged(EventArgs e) - { - base.OnAllowUserToAddRowsChanged(e); - SetScrollInfo(); - } - protected override void OnGridColorChanged(EventArgs e) { base.OnGridColorChanged(e); diff --git a/SunnyUI/Font/UIFontImage.cs b/SunnyUI/Font/UIFontImage.cs index 719f402a..f8db8789 100644 --- a/SunnyUI/Font/UIFontImage.cs +++ b/SunnyUI/Font/UIFontImage.cs @@ -125,6 +125,7 @@ namespace Sunny.UI } string text = char.ConvertFromUtf32(symbol); + graphics.TextRenderingHint = TextRenderingHint.AntiAlias; graphics.DrawString(text, font, color, left + xOffset, top + yOffSet); }