DataGridBoolColumn.AllowNull プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DataGridBoolColumn.AllowNull プロパティの意味・解説 

DataGridBoolColumn.AllowNull プロパティ

null 値を使用できるかどうかを示す値を取得または設定します。

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Dim instance As DataGridBoolColumn
Dim value As Boolean

value = instance.AllowNull

instance.AllowNull = value
public bool AllowNull { get;
 set; }
/** @property */
public boolean get_AllowNull ()

/** @property */
public void set_AllowNull (boolean value)

プロパティ値
null 値を使用できる場合は true。それ以外の場合は false。既定値は true です。

解説解説

このプロパティを false に設定すると、列のチェック ボックスの状態はオン (true) とオフ (false) の 2 種類のみになります。

使用例使用例

AllowNull プロパティを設定するコード例を次に示します。

Private Sub SetAllowNull()
    Dim myGridColumn As DataGridBoolColumn
 = CType(dataGrid1.TableStyles(0).GridColumnStyles(0), DataGridBoolColumn)
    myGridColumn.AllowNull = False
End Sub 'SetAllowNull
private void SetAllowNull(){
    DataGridBoolColumn myGridColumn = (DataGridBoolColumn)dataGrid1.TableStyles[0].GridColumnStyles[0];
    myGridColumn.AllowNull = false;
 }
 
void SetAllowNull()
{
   DataGridBoolColumn^ myGridColumn = dynamic_cast<DataGridBoolColumn^>(dataGrid1->TableStyles[
 0 ]->GridColumnStyles[ 0 ]);
   myGridColumn->AllowNull = false;
}

private void SetAllowNull()
{
    DataGridBoolColumn myGridColumn = 
        (DataGridBoolColumn)(dataGrid1.get_TableStyles().
        get_Item(0).get_GridColumnStyles().get_Item(0));
    myGridColumn.set_AllowNull(false);
} //SetAllowNull
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataGridBoolColumn クラス
DataGridBoolColumn メンバ
System.Windows.Forms 名前空間
AllowDBNull
NullValue
Value


このページでは「.NET Framework クラス ライブラリ リファレンス」からDataGridBoolColumn.AllowNull プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からDataGridBoolColumn.AllowNull プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からDataGridBoolColumn.AllowNull プロパティ を検索

英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「DataGridBoolColumn.AllowNull プロパティ」の関連用語

DataGridBoolColumn.AllowNull プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



DataGridBoolColumn.AllowNull プロパティのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS