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
220
DropDown disappears after postback
posted

Hi,

I'm using a dropdwon list in the Grid for selecting foreign key values. I've setup the dropdown in the InitializeLayout Event like this:

ugMenu.Bands[0].Columns.FromKey("meidContentPage").Type = ColumnType.DropDownList;

ValueList valList = new ValueList();
valList.DataSource = q;
valList.DisplayMember =
"title";
valList.ValueMember =
"id";
valList.DataBind();

ugMenu.Bands[0].Columns.FromKey("meidContentPage").ValueList = valList;

The grid and dropdown column show correct but when saving the grid (and doing a postback) the grid doesn't show the dropdown anymore but just the values of the bound column (the id values).

What am I doing wrong ? Any help would be appreciated