Hello, I think there is an error in the "OutlookGroupBy" functionality of the WinGrid.
The language of my computer is german (Windows XP Professional).
(Regional and Language Options
Regional Options:
Standards and formats: German (Germany)
Location: Germany
Advanced: Language for not-Unicode programs: German (Germany))
Steps to reproduce:
1. Create a new WindowsFormsApplication project.
2. Place the UltraGrid on the form.
3. Dock = Fill;
DisplayLayout.ViewStyleBand = OutlookGroupBy;
4. Code for the form:
//Form1.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace GridOutlookGroupByTest
{
public partial class Form1 : Form
public Form1()
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
DataTable dt = new DataTable();
dt.Columns.Add("Date", typeof(DateTime));
for(int i = -30; i < 30; i++ )
dt.Rows.Add(new object[1] { DateTime.Now.AddDays(i)});
ultraGrid1.DataSource = dt;
// Programm.cs
using System.Threading;
static class Program
/// <summary>
/// Der Haupteinstiegspunkt für die Anwendung.
/// </summary>
[STAThread]
static void Main()
Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("de-DE");
Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("de-DE");
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
5. Set current Day on the computer to Monday.
6. Drop the column header into the GroupBy box.
There is a incorrect headline for the group with item for next Sunday.
It must be "Sontag" (sunday), but "Gestern"(Yesterday) is shown instead.
Is there any work around for this error?
Tanks.
Hi,
I followed your instructions, but there is no GroupByBox displayed in the grid. So I added a line of code to set the ViewStyleBand to OutlookGroupBy.
When I group by the date, the grid does not show any names for the days, it simply groups by the dates. So I am not able to reproduce the problem you describe here.
I am using v9.2 and of the grid, which is the oldest currently-supported version.
I'm attaching my sample project here so you can run it and see if you are getting different results. I suspect there are some more steps involved in reproducing the issue that perhaps you left out.
Hi,thank you for your reply.I hope that one additional linein your code helps further...private void ultraGrid1_InitializeLayout (object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e){ e.Layout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.OutlookGroupBy; e.Layout.Bands [0]. Columns ["Date"]. GroupByMode = Infragistics.Win.UltraWinGrid.GroupByMode.OutlookDate;
Thanks in advance.
Hello,
I ran the project that Mike provided using the latest available version of NetAdvantage 2009 Volume 2, and I was unable to reproduce the issue. Could you create your own sample project and attach it to this thread?
the sample project und the result screenshot are attached. The screenshot is below "GridOutlookGroupByTest.zip / GridOutlookGroupByTest/ ".
And do not forget to set the current day on Monday. I think,this error has their roots in the different "StartOfWeek"- days in US and Germany Calenders.
Alexander S.
This issue has been fixed in the latest Service Release.
Is there also a release for 9.2 or only for 10.x?
Sincerely
This issue is fixed in the latest Service Release for Infragistics NetAdvantage 2009 Volume 2.