Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
120
incorrect headline by using of "OutlookGroupBy"
posted

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;

using System.Collections.Generic;

using System.Windows.Forms;

using System.Threading;

 

namespace GridOutlookGroupByTest

{

    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.

 

Parents
No Data
Reply
  • 469350
    Offline posted

    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.

     

    WindowsFormsApplication11.zip
Children