'Declaration Public Property FormatInfo As IFormatProvider
public IFormatProvider FormatInfo {get; set;}
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinGrid Private Sub Button96_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button96.Click Dim dateColumn As UltraGridColumn = Me.UltraGrid1.DisplayLayout.Bands(1).Columns("OrderDate") Dim currencyColumn As UltraGridColumn = Me.UltraGrid1.DisplayLayout.Bands(2).Columns("Unit Price") ' Set the Format and FormatInfo properties. You don't have to set both. You can set one ' or the other or both. currencyColumn.Format = "##,###,####.00" currencyColumn.FormatInfo = System.Globalization.CultureInfo.CreateSpecificCulture("fr") dateColumn.Format = "dd/M/yyyy" dateColumn.FormatInfo = System.Globalization.CultureInfo.CreateSpecificCulture("fr") End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using System.Diagnostics; private void button96_Click(object sender, System.EventArgs e) { UltraGridColumn dateColumn = this.ultraGrid1.DisplayLayout.Bands[1].Columns["OrderDate"]; UltraGridColumn currencyColumn = this.ultraGrid1.DisplayLayout.Bands[2].Columns["Unit Price"]; // Set the Format and FormatInfo properties. You don't have to set both. You can set one // or the other or both. currencyColumn.Format = "##,###,####.00"; currencyColumn.FormatInfo = System.Globalization.CultureInfo.CreateSpecificCulture( "fr" ); dateColumn.Format = "dd/M/yyyy"; dateColumn.FormatInfo = System.Globalization.CultureInfo.CreateSpecificCulture( "fr" ); }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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