DataColumn.MaxLength 属性 [Visual Basic]请参见
DataColumn 类 | DataColumn 成员 | System.Data 命名空间
要求
平台: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family
语言
C#C++JScriptVisual Basic全部显示
获取或设置文本列的最大长度。[Visual Basic]
Public Property MaxLength As Integer
[C#]
public int MaxLength {get; set;}
[C++]
public: __property int get_MaxLength();
public: __property void set_MaxLength(int);
[JScript]
public function get MaxLength() : int;
public function set MaxLength(int);
属性值
列的最大长度(以字符数表示)。如果列没有最大长度,该值为 -1(默认值)。备注
对于非文本列,则忽略 MaxLength 属性。MaxLength不是列的长度!!!
DataColumn 类 | DataColumn 成员 | System.Data 命名空间
要求
平台: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family
语言
C#C++JScriptVisual Basic全部显示
获取或设置文本列的最大长度。[Visual Basic]
Public Property MaxLength As Integer
[C#]
public int MaxLength {get; set;}
[C++]
public: __property int get_MaxLength();
public: __property void set_MaxLength(int);
[JScript]
public function get MaxLength() : int;
public function set MaxLength(int);
属性值
列的最大长度(以字符数表示)。如果列没有最大长度,该值为 -1(默认值)。备注
对于非文本列,则忽略 MaxLength 属性。MaxLength不是列的长度!!!
解决方案 »
- repeater 实现如下显示
- 刷新问题
- 求助:母版页高度问题 疑惑 求解
- JS在firefox中不兼容,请高手支招!
- gridview中的ImageButton的事件按钮跳转传值问题..
- log4net的问题,无法写入日志,只写入了header和footer
- 老问题:studio 2005工具箱找不到ADO.NET类对象:SqlDataAdapter ,Sqlconnection ,Sqlcommand
- javascript读取RadioButtonList的值
- 有没有人遇到此类错误
- 初学者问题
- Page.Response.Write("<img height=13 src='images\deleteTrue.gif' width=13 align=middle>");出错
- <%=#%> <%=%> 为什么不被解析??
SqlDataAdapter sqlapt=new SqlDataAdapter("select ID,姓名 from 用户",sqlcnt);
sqlapt.MissingSchemaAction=MissingSchemaAction.AddWithKey;
DataSet dtst=new DataSet();
sqlapt.Fill(dtst,"用户");
int init=dtst.Table["用户"].Columns["ID"].MaxLength;