System.Data Namespace DataColumn Class
Sets or retrieves the maximum length of a text column.
Script |
DataColumn.MaxLength = intChars |
intChars |
The maximum length of the column in characters. If the column has no maximum length, the value is 1 ( default ). |
The property is read/write with no default value.
The MaxLength property is ignored for non-text columns.
DataColumn Members