Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何清除中继器中的所有行?
我试过了:
RptSeatOrLap.DataSource=Nothing
但它不起作用。
您需要调用DataBind()以查看分配的新数据源的效果。
DataBind()
RptSeatOrLap.DataSource=dtEmptyDataTable; RptSeatOrLap.DataBind();
rpt.DataSource = null; rpt.DataBind();
'使用处置:
rpt.Dispose rpt.DataBind()