# Dropdown in power table

**URL:** <https://forum.inductiveautomation.com/t/dropdown-in-power-table/90042>\
**Category:** Ignition\
**Created:** [May 7, 2024, 4:40pm UTC](https://forum.inductiveautomation.com/t/dropdown-in-power-table/90042 "2024-05-07T16:40:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anita.Shinde](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@Anita.Shinde](https://forum.inductiveautomation.com/u/Anita.Shinde)\
**Post date:** [May 7, 2024, 4:40pm UTC](https://forum.inductiveautomation.com/t/dropdown-in-power-table/90042/1 "2024-05-07T16:40:27Z")

</div>

Hi Team,

I have a power table and I want to dropdown for "version" column(it will fetch multiple version), depending on selected grade 1st column.  
please refer below diagram-

How can I do this, any idea?

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/5/65446729b4f1d0d9b15be9e7395c94c822b17328.png)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 7, 2024, 5:04pm UTC](https://forum.inductiveautomation.com/t/dropdown-in-power-table/90042/2 "2024-05-07T17:04:49Z")

</div>

> [@Force configure cell update in power table](https://forum.inductiveautomation.com/t/force-configure-cell-update-in-power-table/16318/7):
>
> The much more efficient solution is to embed a custom editor, which will lookup the datasets dynamically whenever it’s appropriate. I’ve got a very simple example of this below; the project has an editable ‘Options’ dataset, and the available options in column B in the editable table will be dynamic based on the value in column A. The relevant code is here: root = self from javax.swing import JComboBox, DefaultCellEditor, DefaultComboBoxModel class CustomCellEditor(DefaultCellEditor):…

Here's a starting point of how to make multiple-layered custom dropdown options.

---

<div class="post-metadata">

**Author:** ![Anita.Shinde](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@Anita.Shinde](https://forum.inductiveautomation.com/u/Anita.Shinde)\
**Post date:** [May 7, 2024, 5:19pm UTC](https://forum.inductiveautomation.com/t/dropdown-in-power-table/90042/3 "2024-05-07T17:19:41Z")

</div>

on which event I need to write this code?  
because I want versions of selected "grade" and the "grade" will get after selecting the row and after that I want to bind the dropdown data.  
by default, there is one row with single version but when user double clicks on "version" column dropdown should appear with multiple versions.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 7, 2024, 5:24pm UTC](https://forum.inductiveautomation.com/t/dropdown-in-power-table/90042/4 "2024-05-07T17:24:24Z")

</div>

There's a project file in the linked post; import it and you can see the full setup, because it involves more than one event hook on the table.

---

<div class="post-metadata">

**Author:** ![Anita.Shinde](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@Anita.Shinde](https://forum.inductiveautomation.com/u/Anita.Shinde)\
**Post date:** [May 8, 2024, 9:54am UTC](https://forum.inductiveautomation.com/t/dropdown-in-power-table/90042/5 "2024-05-08T09:54:18Z")

</div>

I tried this and it worked.  
Thank you so much.
