It would be helpful if you were able to set the culture info at the grid level instead of the column level. Is this possible? Right now I only see that you are able to set the cultureinfo at the column level. For example:
ultrawingrid1.DisplayLayout.Bands(0).Columns("colname").FormatInfo = New CultureInfo("de-de")
Yes. I did not want to set the cultureinfo at the application level so I created an extension method to handle it at the grid level. It's great to have the flexibility to apply the cultureinfo at the column level, but I did not need it at that level for the grids in my application.
<Extension()> _Public Sub FormatInfo(ByVal g As Infragistics.Win.UltraWinGrid.UltraGrid, ByVal c As System.Globalization.CultureInfo) If g.DataSource IsNot Nothing Then For Each b As Infragistics.Win.UltraWinGrid.UltraGridBand In g.DisplayLayout.Bands For Each col As Infragistics.Win.UltraWinGrid.UltraGridColumn In b.Columns col.FormatInfo = c Next Next End IfEnd Sub
Hello,
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
Sincerely,DimiDeveloper Support EngineerInfragistics, Inc.
Hi,
There's no way to set this for just the grid, but you could, of course, change the CurrentCulture and/or CurrentUICulture of your entire application.
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("de-de"); System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("de-de");