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
410
Adding a Column Programmatically Can't Have a Validator
posted

When I add an UltraGridColumn programatically and try to add a ValidatorItem to the column Validators, it will work; but, on Postback there is an exception trying to LoadViewState for the column in question.

[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index] System.Collections.ArrayList.get_Item(Int32 index) +2748189 Infragistics.WebUI.UltraWebGrid.ValidatorItemsCollection.get_Item(Int32 index) +29 Infragistics.WebUI.UltraWebGrid.ValidatorItemsCollection.LoadViewState(Object savedState) +537 Infragistics.WebUI.UltraWebGrid.ValidatorItemsCollection.System.Web.UI.IStateManager.LoadViewState(Object savedState) +31 Infragistics.WebUI.UltraWebGrid.UltraGridColumn.LoadViewState(Object savedState) +399 Infragistics.WebUI.UltraWebGrid.UltraGridColumn.System.Web.UI.IStateManager.LoadViewState(Object savedState) +32

Parents
No Data
Reply Children
No Data