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



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

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

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

   

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



DataGridBoolColumn.AllowNull プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS