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)"; }