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
240
Add a WinDropDown to a column in code
posted

Hi @all,

in my app I have bound some data from a list of business objects to a WinGrid with no layout specified like this:

Dim liBO As List(Of BO)
liBO = BO.GetList()
UltraGrid1.SetDataBinding(liBO, "")

Now in the InitializeLayout Event I want to add a WinDropDown, which previously was filled with some other data relating to the business object, to a column of the Grid like this:

e.Layout.Bands(0).Columns("Media").ValueList = uddMedia

But after all the WinDropDown doesn't appear in the column.
What am I missing here?
Is there anything needed to be done to get this scenario to work?

Any help is highly appreciated.

Best Regards
HowieD