バージョン

NullText プロパティ (UltraGridOverride)

Null 値でセルに表示される文字列を取得または設定します。
シンタックス
'宣言
 
Public Property NullText As String
public string NullText {get; set;}
解説
このプロパティを使用すると、セルに Null 値が含まれるときにユーザーに表示されるテキストをカスタマイズできます。たとえば、セルに「(empty)」または「no value」と表示できます。このプロパティのデフォルト設定は「null」です。
使用例
Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid

  Private Sub Button21_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button21.Click

      ' NullText property specifies the text that the UltraGrid displayes in cells when
      ' the underlying value is DBNull.
      Me.ultraGrid1.DisplayLayout.Override.NullText = "(Null)"

      ' You can override above grid-wide settings for a particular band by setting the
      ' the NullText property on the Override object of the band.
      Me.ultraGrid1.DisplayLayout.Bands(0).Override.NullText = "NULL"

      ' Forthermore, you can override above settings for an individual column by setting
      ' that column's NullText property.
      Me.ultraGrid1.DisplayLayout.Bands(0).Columns(1).NullText = "(No Data)"

  End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;

private void button21_Click(object sender, System.EventArgs e)
{

	// NullText property specifies the text that the UltraGrid displayes in cells when
	// the underlying value is DBNull.
	this.ultraGrid1.DisplayLayout.Override.NullText = "(Null)";

	// You can override above grid-wide settings for a particular band by setting the
	// the NullText property on the Override object of the band.
	this.ultraGrid1.DisplayLayout.Bands[0].Override.NullText = "NULL";

	// Forthermore, you can override above settings for an individual column by setting
	// that column's NullText property.
	this.ultraGrid1.DisplayLayout.Bands[0].Columns[1].NullText = "(No Data)";

}
参照