# Call listview button event

**URL:** <https://discuss.workflowgen.com/t/call-listview-button-event/1127>\
**Category:** Form Designer\
**Created:** [August 7, 2018, 12:46pm UTC](https://discuss.workflowgen.com/t/call-listview-button-event/1127 "2018-08-07T12:46:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![simon.breeze](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@simon.breeze](https://discuss.workflowgen.com/u/simon.breeze)\
**Post date:** [August 7, 2018, 12:46pm UTC](https://discuss.workflowgen.com/t/call-listview-button-event/1127/1 "2018-08-07T12:46:26Z")

</div>

Hi,

I am trying to use a list view to record an employee’s holiday requests and allow their manager to approve them. What I really need to make this nice and smooth is to call the events triggered by the edit and update buttons programmatically. Alternatively if I just knew how they commit things to the grid and add a new row etc I could program my own events to do this. Any guidance would be greatly appreciated.

Thanks

Simon

---

<div class="post-metadata">

**Author:** ![simon.breeze](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@simon.breeze](https://discuss.workflowgen.com/u/simon.breeze)\
**Post date:** [August 7, 2018, 2:07pm UTC](https://discuss.workflowgen.com/t/call-listview-button-event/1127/2 "2018-08-07T14:07:54Z")

</div>

To answer my own post just call the Gridview’s UpdateRow method which accepts and integer for RowIndex and a Boolean for CausesValidation. GirdBookings.UpdateRow(1,true)
