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
440
Grid crashes
posted

Hi,

UltraGrid crashes (shows red X) with simple scenario:

1. Set datasource with bollean column (click on button1 in my sample).

2. Use ValueList for this column:

        public static ValueList GetYesNoListForBool()
        {
            ValueList valueList = new ValueList();
            valueList.ValueListItems.Add(true, "Yes");
            valueList.ValueListItems.Add(false, "No");
            return valueList;
        }

        private void ultraGrid1_InitializeLayout(object sender, InitializeLayoutEventArgs e)
        {
            if (e.Layout.Bands[0].Columns.Exists("bool"))
            {
                UltraGridColumn column = e.Layout.Bands[0].Columns["bool"];
                column.FilterOperandStyle = FilterOperandStyle.DropDownList;
                ValueList valueList = GetYesNoListForBool();
                column.ValueList = valueList;
            }
        }

3. Select cell in boolean column in rowfilter in application.

4. Set datasource without bollean column (click on button2 in my sample).

Crash! :(

I attached sample project to this post.

How I can fix it?

Thanks.

TestGrid.zip
Parents
No Data
Reply
  • 440
    Offline posted

    It is reprodused in Infra 10.1.

    It is OK in Infra 10.3.

    This thread is closed.

Children