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
1360
Possible bug in UltraWinGrid v9.2 with checkbox in header
posted

Hi,

When you create a simple grid databound to a datatable and then set each column header to be CheckBoxVisibility = Always, and a CheckBoxSynchronization of None you get check boxes in each column as you would want.

However, if you make the grid small enough that you have to scroll horizontally to see the columns, you get  a weird problem where the check boxes can effectively check or uncheck themselves at random (it seems).

So steps to reproduce are:

1. Setup a grid

2. Bind to a datasource with mutiple columns

3. Programmatically set all columns to check boxes as follows:
foreach (UltraGridColumn col in ultraGrid1.DisplayLayout.Bands[0].Columns)
{
    col.Header.CheckBoxSynchronization = HeaderCheckBoxSynchronization.None;
    col.Header.CheckBoxVisibility = HeaderCheckBoxVisibility.Always;
}

4. Run program and resize form/grid so horizontal scroll bars show up

5. Check one of the headers then scroll around. Several of the other headers now check themselves for no reason.

Is this a know bug? Please does anyone have a workaround? I have attached a zip solution that shows the issue.

Thanks,

Doug

TestGridIssue.zip
Parents
No Data
Reply Children