2009-02-01 Ivan N. Zlatev <contact@i-nz.net>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / DataGridViewImageColumn.cs
index 6dbb03003296a9870ca03d321f98b9112afa4701..1528a99f4f231821aefd3bcd2c020967f0d4f180 100644 (file)
@@ -47,6 +47,7 @@ namespace System.Windows.Forms {
                        this.valuesAreIcons = valuesAreIcons;
                        base.CellTemplate = new DataGridViewImageCell(valuesAreIcons);
                        (base.CellTemplate as DataGridViewImageCell).ImageLayout = DataGridViewImageCellLayout.Normal;
+                       DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
                        icon = null;
                        image = null;
                }