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
125
Placing a Drop-Down in an UltraGridCell
posted

Hi all,

 

I was wondering if what I'm attempting to do is possible. I've read the forums and knowledge-base article
KB07841(HOWTO:What is the best way to place a DropDown list in a grid cell?), but I think my situation is slightly different.

In my scenario, the gird is already populated with data, and when a user clicks a certain button, I want to fill one of the row's cell with a drop-down containing some new data.

When I follow the steps shown in the knowledge-base article, I notice that its making use of the Grid InitializeLayout event. Does this still apply if my grid has already been data-bound, and I'm only adding new data to one cell of one row? I ask because when I try adding either ValueListItems or an UltraDropDown into the cell, outside of the InitializeLayout event, neither shows up.

I'm using v10.3 of the software.

 

Thanks,

 

Ben Z

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi Ben,

    It's not clear to me what you are trying to do exactly.

    bzarboni said:
    In my scenario, the gird is already populated with data, and when a user clicks a certain button, I want to fill one of the row's cell with a drop-down containing some new data.

    Where is this button? Are you talking about a button in a cell/row of the grid? Or is this some external button.

    Populating a ValueList and attaching it to a column or cell can be done at any time, but attached a ValueList to a column doesn't change the Value of any of the cells in that column. And the list does not appear until you click on the dropdown arrow to drop it down.

    So it's not clear to me what you mean by "neither shows up." Are you saying you don't see the dropdown arrow in the cell? Or are you expecting something to display in the cell simply because you added a ValueList to the cell or column?

    If you are attaching a ValueList to a column in the grid and you are not seeing the dropdown arrow in that column, then it's most likely because the field is not editable.

Children