# Expand a Grid's row programmatically?

**URL:** <https://forum.radzen.com/t/expand-a-grids-row-programmatically/4558>\
**Category:** Angular\
**Created:** [August 7, 2020, 6:43am UTC](https://forum.radzen.com/t/expand-a-grids-row-programmatically/4558 "2020-08-07T06:43:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ava\_pmi](https://forum.radzen.com/user_avatar/forum.radzen.com/ava_pmi/32/2367_2.png) [@ava\_pmi](https://forum.radzen.com/u/ava_pmi)\
**Post date:** [August 7, 2020, 6:43am UTC](https://forum.radzen.com/t/expand-a-grids-row-programmatically/4558/1 "2020-08-07T06:43:14Z")

</div>

How can I expand a Grid's row programmatically?  
Ideally I want to expand it when you click on the row (so RowSelect event).

I tried calling:

this.grid.rowExpand.emit(${event});

but it will just run the rowExpand event of the grid, and not actually expand the row!

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [August 7, 2020, 7:08am UTC](https://forum.radzen.com/t/expand-a-grids-row-programmatically/4558/2 "2020-08-07T07:08:10Z")

</div>

Expanding rows programmatically is not supported.

---

<div class="post-metadata">

**Author:** ![ava\_pmi](https://forum.radzen.com/user_avatar/forum.radzen.com/ava_pmi/32/2367_2.png) [@ava\_pmi](https://forum.radzen.com/u/ava_pmi)\
**Post date:** [August 7, 2020, 7:15am UTC](https://forum.radzen.com/t/expand-a-grids-row-programmatically/4558/3 "2020-08-07T07:15:00Z")

</div>

@enchev ok thank you, and by any chance, is changing Steps in the StepComponent possible programmatically? That would also work for my case

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [August 7, 2020, 7:16am UTC](https://forum.radzen.com/t/expand-a-grids-row-programmatically/4558/4 "2020-08-07T07:16:42Z")

</div>

Yes, it’s possible. You can set selectedIndex to desired.

---

<div class="post-metadata">

**Author:** ![ava\_pmi](https://forum.radzen.com/user_avatar/forum.radzen.com/ava_pmi/32/2367_2.png) [@ava\_pmi](https://forum.radzen.com/u/ava_pmi)\
**Post date:** [August 7, 2020, 7:21am UTC](https://forum.radzen.com/t/expand-a-grids-row-programmatically/4558/5 "2020-08-07T07:21:02Z")

</div>

@enchev ok great, one last thing, can I also disable/enable a specific Step programmatically? As I see that each "item" has a Disabled flag.

The idea is to block the user from going forward, until he selects something from an ItemList inside a step, so only once an item is selected he can go forward
