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.
I tried your sample with the latest service release of v10.1 and the problem also does not occur in that version. So it looks like whatever problem was occurring here was fixed a long time ago.
It is reprodused in Infra 10.1.
It is OK in Infra 10.3.
This thread is closed.