X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FManaged.Windows.Forms%2FSystem.Windows.Forms%2FDataGridViewTextBoxColumn.cs;h=d7cc41840af1d9f5d90268619a9e68e91a322832;hb=ecd61be7b3ef7aa871d3bd7be9669d69dd6812b6;hp=ea72209975db17df76b2e9b966955a3f5355e58d;hpb=c4a3b30460c7ea1a1fb3c97cfc8478555714af2f;p=mono.git diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridViewTextBoxColumn.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridViewTextBoxColumn.cs index ea72209975d..d7cc41840af 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridViewTextBoxColumn.cs +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridViewTextBoxColumn.cs @@ -26,6 +26,9 @@ #if NET_2_0 +using System.Drawing; +using System.ComponentModel; + namespace System.Windows.Forms { public class DataGridViewTextBoxColumn : DataGridViewColumn { @@ -33,17 +36,21 @@ namespace System.Windows.Forms { private int maxInputLength; private DataGridViewColumnSortMode sortMode; - public DataGridViewTextBoxColumn () { + public DataGridViewTextBoxColumn () + { base.CellTemplate = new DataGridViewTextBoxCell(); maxInputLength = 32767; sortMode = DataGridViewColumnSortMode.Automatic; } + [Browsable (false)] + [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)] public override DataGridViewCell CellTemplate { get { return base.CellTemplate; } set { base.CellTemplate = value as DataGridViewTextBoxCell; } } + [DefaultValue (32767)] public int MaxInputLength { get { return maxInputLength; } set { @@ -54,6 +61,7 @@ namespace System.Windows.Forms { } } + [DefaultValue (DataGridViewColumnSortMode.Automatic)] public new DataGridViewColumnSortMode SortMode { get { return sortMode; } set { @@ -64,7 +72,8 @@ namespace System.Windows.Forms { } } - public override string ToString () { + public override string ToString () + { return GetType().Name; }