X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FManaged.Windows.Forms%2FSystem.Windows.Forms%2FDataGrid.cs;h=019f6ee91ce96655fa3678f86048edf0ade708b1;hb=5fa1151e992d5665b59ef6741d6211820d40b635;hp=208c8749474ecad69cf5b9bd4b79f87612c2c662;hpb=a91b0dc4ef72aa4fe10852e09e2489b412ee5a2f;p=mono.git diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs index 208c8749474..019f6ee91ce 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGrid.cs @@ -1194,6 +1194,9 @@ namespace System.Windows.Forms protected override void OnBindingContextChanged( EventArgs e) { base.OnBindingContextChanged (e); + + current_style.CreateColumnsForTable (false); + CalcAreasAndInvalidate (); } protected virtual void OnBorderStyleChanged (EventArgs e)