How to clear all rows from a Repeater?
I've tried:
RptSeatOrLap.DataSource=Nothing
But it's not working.
You need to call DataBind()
in order to see the effect of new data source being assigned.
RptSeatOrLap.DataSource=dtEmptyDataTable;
RptSeatOrLap.DataBind();
rpt.DataSource = null;
rpt.DataBind();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With