FlexGrid for WinForms
AllowNull Property



Gets or sets that cells in the Column will accept null value or null will be replaced by default value in unbound mode.
Syntax
'Declaration
 
<DefaultValueAttribute()>
Public Property AllowNull As Boolean
'Usage
 
Dim instance As Column
Dim value As Boolean
 
instance.AllowNull = value
 
value = instance.AllowNull
[DefaultValue()]
public bool AllowNull {get; set;}
[DefaultValue()]
public:
property bool AllowNull {
   bool get();
   void set (    bool value);
}
Remarks
This property works only if IsValueType member of RowCol.DataType property equals to True and for type System.String. If value was changed to False then all null values in the Column will be replaced by defaults of current RowCol.DataType.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Column Class
Column Members

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback