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
Change Drop Down Value - Error
posted

I have a DropDown that I set as the ValueList to a column in a WinGrid(2008 vol 3).  The dropdown values are built from LINK to SQl call.  I return a List<Table>.  However, everytime I try to change the value I get this error.

Unable to update the data value: Operation is not valid due to the current state of the object.

 

Here is the code I use. 

        private void ugSystem_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
        {
            Infragistics.Win.UltraWinGrid.UltraDropDown udd;

            udd = new Infragistics.Win.UltraWinGrid.UltraDropDown();
            udd.DataSource = b.PIFactory.GetFactSystemAttributeName().GetDropDown();
            udd.ValueMember = "attributeNameID";
            udd.DisplayMember = "description";

            e.Layout.Bands["SystemAttributes"].Columns["attributeNameID"].ValueList = udd;
        }