# Refresh datagrid on button click: Reload() does nothing

**URL:** <https://forum.radzen.com/t/refresh-datagrid-on-button-click-reload-does-nothing/6236>\
**Category:** Blazor WebAssembly\
**Created:** [January 7, 2021, 5:15pm UTC](https://forum.radzen.com/t/refresh-datagrid-on-button-click-reload-does-nothing/6236 "2021-01-07T17:15:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgiammarco](https://forum.radzen.com/user_avatar/forum.radzen.com/mgiammarco/32/896_2.png) [@mgiammarco](https://forum.radzen.com/u/mgiammarco)\
**Post date:** [January 7, 2021, 5:15pm UTC](https://forum.radzen.com/t/refresh-datagrid-on-button-click-reload-does-nothing/6236/1 "2021-01-07T17:15:40Z")

</div>

Hello,  
I have a datagrid with a custom date filter. I want to reload the datagrid when I click on a button.  
I put on that button click event the "invoke custom method Reload"  
It does nothing.  
If I click on datagrid column data is correctly refreshed.  
Where is the problem?  
Thanks,  
Mario

---

<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:** [January 7, 2021, 5:36pm UTC](https://forum.radzen.com/t/refresh-datagrid-on-button-click-reload-does-nothing/6236/2 "2021-01-07T17:36:06Z")

</div>

Most probably the grid is bound in Page Load? If this is the case you can execute awat Load() to get the latest data.

---

<div class="post-metadata">

**Author:** ![mgiammarco](https://forum.radzen.com/user_avatar/forum.radzen.com/mgiammarco/32/896_2.png) [@mgiammarco](https://forum.radzen.com/u/mgiammarco)\
**Post date:** [January 7, 2021, 7:48pm UTC](https://forum.radzen.com/t/refresh-datagrid-on-button-click-reload-does-nothing/6236/3 "2021-01-07T19:48:15Z")

</div>

I have tried await load(), it reset also the two datePickers that are bound to a page property

---

<div class="post-metadata">

**Author:** ![mgiammarco](https://forum.radzen.com/user_avatar/forum.radzen.com/mgiammarco/32/896_2.png) [@mgiammarco](https://forum.radzen.com/u/mgiammarco)\
**Post date:** [January 7, 2021, 7:50pm UTC](https://forum.radzen.com/t/refresh-datagrid-on-button-click-reload-does-nothing/6236/4 "2021-01-07T19:50:02Z")

</div>

I am doing a very very simple very very basic two date pickers (start date and end date) preloaded with first and last day of current month and a button to reload the datagrid when you change a date.

---

<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:** [January 7, 2021, 8:23pm UTC](https://forum.radzen.com/t/refresh-datagrid-on-button-click-reload-does-nothing/6236/5 "2021-01-07T20:23:48Z")

</div>

Not sure exactly what you are trying to achieve however this article might help you:

> **[Date range filter (Blazor)](https://www.radzen.com/documentation/blazor/date-range-filter/)**
>
> Use two DatePicker components to filter DataGrid by date range.

---

<div class="post-metadata">

**Author:** ![daveg1466](https://forum.radzen.com/user_avatar/forum.radzen.com/daveg1466/32/18767_2.png) [@daveg1466](https://forum.radzen.com/u/daveg1466)\
**Post date:** [October 14, 2021, 1:55pm UTC](https://forum.radzen.com/t/refresh-datagrid-on-button-click-reload-does-nothing/6236/6 "2021-10-14T13:55:23Z")

</div>

This article works great! I have more or less the same question. The example sets up two methods and sets them to specific dates with start = DateTime.Parse("01/01/2005") and end = DateTime.Pars("01/01/2010") ... I would like to have start = first day of the current month and end = last day of the current month.

I have looked at several ways to get those two days, but can't seem to get the right DateTime syntax.

Thanks for any help!

---

<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:** [October 14, 2021, 2:03pm UTC](https://forum.radzen.com/t/refresh-datagrid-on-button-click-reload-does-nothing/6236/7 "2021-10-14T14:03:58Z")

</div>

> <https://stackoverflow.com/questions/24245523/getting-the-first-and-last-day-of-a-month-using-a-given-datetime-object>
