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
115
Binding DropDownList to generic List
posted
Hi, I have a problem. I have a list of ABC objects and ABC object has another list attribute of DEF objects. Now Firstly, I bind my list to my ultrawebgrid and I want one of the columns of type dropdownlist to which internal list should bind to. I want the DisplayMember of the dropdownlist to be DEF.attribute1. How do I achieve this ? We tried declaring the column in the aspx page and in the codebehind, we are binding the individual list to the valuelist of the dropdownlist column of each row as we parse through the list using the command DataBind(dataSource, dataMember ,DisplayMember,ValueMember); But the grid cells are not showing the dropdownlist at all though while debugging we figured out that the valuelist is populated with the right values.
  • 28464
    posted


    Hello,

    This is really hard to tell without seeing some code first. Could you please paste your grid ASPX declaration and codebehind? Also, is each list DEF different for each different object ABC (each row in the ABC collection)? ValueLists are displayed per column, so I am not sure there is an easy way to change them per cell.