Hello: I am programmatically setting the stye and the value list in my application:
ugBED.DisplayLayout.Bands(0).Columns("Status_CD_C").Style = ColumnStyle.DropDownList
ugBED.DisplayLayout.Bands(0).Columns("Status_CD_C").ValueList = fvlStatus
But the second statement is raising an error, "ValueList.Appearances must be the same as the grid's layout.Appearances
fvlStatus is valid with 4 valueitems.
What am I doing wrong?
venki
Hi Venki,
How are you creating 'fvlStatus'? My guess is that this ValueList belongs to some other control, and you are trying to use it for that other control and also for the grid. I don't think that will work. You can't share the same ValueList between multiple controls.
Mike:
Yes, I have on valuelist object created that is being used as valuelist for two grids.
I have used similar approach for another field (User_ID_C) which is bound to a UltraDropdown-type object but the only difference is that the columns were activate only.
I will create another instance of this valuelist object and see if this probem.
Venki